Salome HOME
Selection for image presentation & updates for interpolated stream profiles and stream.
[modules/hydro.git] / src / HYDROData / HYDROData_Stream.cxx
index 6610c1fc0b8d9cc32853b18cc449877751d0623e..33de721c8aa96391b7a28711c81311c0ea71f950 100644 (file)
@@ -1173,8 +1173,16 @@ bool HYDROData_Stream::Interpolate( HYDROData_IProfilesInterpolator* theInterpol
     aProfile->SetProfilePoints( aProfilePoints );
 
     // Add profile to the stream
-    isOK = AddProfile( aProfile ) && isOK;
+    bool isAdded = AddProfile( aProfile );
+    if ( !isAdded ) {
+      aProfile->Remove();
+    }
+    else
+      aProfile->Update();
   }
 
+  if ( isOK )
+    Update();
+
   return isOK;
-}
\ No newline at end of file
+}