]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
lot 11: corrections 2
authorisn <isn@opencascade.com>
Wed, 20 Mar 2019 13:59:23 +0000 (16:59 +0300)
committerisn <isn@opencascade.com>
Wed, 20 Mar 2019 13:59:23 +0000 (16:59 +0300)
src/HYDROData/HYDROData_StreamLinearInterpolation.cxx
src/HYDROGUI/HYDROGUI_StreamDlg.cxx

index 9cea6d8c90cdfd80ee44757c6d0fd675b926b453..f7c9d1a8497ac7f74d3d73fb7b6e9561f2e380a3 100644 (file)
@@ -82,7 +82,7 @@ static void GetMaxDist(const std::vector<gp_Pnt2d>& PNTS,
   for (int i=0; i<PNTS.size()-1; i++)
   {
     //dist.push_back(PNTS[i].Distance(PNTS[i+1])); //via distance between p1/p2 
-    dist.push_back(abs(PNTS[i].X()-PNTS[i+1].X())); //via U-diff of p1/p2
+    dist.push_back(std::abs(PNTS[i].X()-PNTS[i+1].X())); //via U-diff of p1/p2
   }
   for (int i=0; i<dist.size(); i++)
   {
index df7f384477b7f6dab20b1acf85a5cbc586eb743f..e8b7e335c3cb70975586ada5df67120c3a18db2a 100644 (file)
@@ -414,8 +414,8 @@ void HYDROGUI_StreamDlg::clearWarnings()
 
 void HYDROGUI_StreamDlg::ModeChangedDlg(bool mode)
 {
-  if ( signalsBlocked() )
-    return;
+  //if ( signalsBlocked() )
+  //  return;
   if (mode)
   {
     myProfilePoints->setVisible(false);