Salome HOME
debug, dialogs not availables when HYDRO module interface is not loaded
authorPaul RASCLE <paul.rascle@edf.fr>
Tue, 6 Nov 2018 14:08:47 +0000 (15:08 +0100)
committerPaul RASCLE <paul.rascle@edf.fr>
Tue, 6 Nov 2018 14:08:47 +0000 (15:08 +0100)
src/HYDROData/HYDROData_CalculationCase.cxx

index daeef25f6996c84cd3dc1933a96725936c71958b..ef39c64be863999482ecf15408be6734e032b7f9 100755 (executable)
@@ -1048,6 +1048,7 @@ NCollection_Sequence<double> HYDROData_CalculationCase::GetAltitudesForPoints(
   NCollection_Sequence<double> aResSeq;
 
   Handle(Message_ProgressIndicator) aZIProgress = HYDROData_Tool::GetZIProgress();
+  //DEBTRACE("aZIProgress=" << aZIProgress);
   if ( aZIProgress ) {
     aZIProgress->Reset();
   }
@@ -1071,7 +1072,9 @@ NCollection_Sequence<double> HYDROData_CalculationCase::GetAltitudesForPoints(
       QThread::usleep(500);
     }
   }
-  aZIProgress->Show( Standard_True );
+  //DEBTRACE("aZIProgress=" << aZIProgress);
+  if ( aZIProgress )
+    aZIProgress->Show( Standard_True );
 
   return aResSeq;
 }