Salome HOME
Create goups for stream.
[modules/hydro.git] / src / HYDROCurveCreator / CurveCreator_Curve.cxx
index a4f9947cfb14327c7a7d95d8f730329b0f65f5df..69287f1fa6c241ba57907476c66676446e620252 100644 (file)
@@ -375,7 +375,7 @@ bool CurveCreator_Curve::clear()
   startOperation();
   // Set the difference.
   if (addEmptyDiff()) {
-    myListDiffs.back().init(this, CurveCreator_Operation::Clear);
+    myListDiffs.back().init(this);
   }
   res = clearInternal();
   finishOperation();
@@ -394,7 +394,7 @@ bool CurveCreator_Curve::joinInternal( const int theISectionTo,
                              aSection2->myPoints.begin(), 
                              aSection2->myPoints.end());
 
-  res = removeSection(theISectionFrom);
+  res = removeSectionInternal(theISectionFrom);
   redisplayCurve();
   return res;
 }
@@ -878,12 +878,12 @@ bool CurveCreator_Curve::removePoint( const int theISection, const int theIPnt )
   bool res = false;
   // Set the difference.
   startOperation();
+  SectionToPointList aListOfSectionsToPoints;
+  aListOfSectionsToPoints.push_back(std::make_pair(theISection, theIPnt));
   if (addEmptyDiff()) {
     myListDiffs.back().init(this, CurveCreator_Operation::RemovePoints,
-                            theISection, theIPnt);
+                            aListOfSectionsToPoints);
   }
-  SectionToPointList aListOfSectionsToPoints;
-  aListOfSectionsToPoints.push_back(std::make_pair(theISection, theIPnt));
   res = removePointsInternal( aListOfSectionsToPoints );
   finishOperation();
   return res;