Salome HOME
17.12.2013. Added Partition algorithm (draft version).
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Poly3DOp.cxx
index 26c9e374f23feb1fecba62e11402c5021aec9681..7a4bd951fb8a8848fdcfd4c9ba5e24b6836ff792 100644 (file)
@@ -145,9 +145,6 @@ bool HYDROGUI_Poly3DOp::processApply( int& theUpdateFlags,
   if( myIsEdit )
   {
     aResult = myEditedObject;
-    aResult->RemoveProfileUZ();
-    aResult->RemovePolylineXY();
-    aResult->RemoveBathymetry();
   }
   else
   {
@@ -159,6 +156,7 @@ bool HYDROGUI_Poly3DOp::processApply( int& theUpdateFlags,
 
   aResult->SetName( aResultName );
 
+  aResult->SetPolylineXY( aPolyline, false );
   if ( !aProfile.IsNull() )
   {
     Handle(HYDROData_ProfileUZ) aProfileUZ = aProfile->GetProfileUZ();
@@ -172,8 +170,6 @@ bool HYDROGUI_Poly3DOp::processApply( int& theUpdateFlags,
     aResult->SetBathymetry( aBath );
   }
 
-  aResult->SetPolylineXY( aPolyline );
-
   if( !myIsEdit )
   {
     aResult->SetBorderColor( HYDROData_Polyline3D::DefaultBorderColor() );