]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Fix bug #123 (Undo is enabled for polyline that just was
authorakl <akl@opencascade.com>
Thu, 21 Nov 2013 17:42:10 +0000 (17:42 +0000)
committerakl <akl@opencascade.com>
Thu, 21 Nov 2013 17:42:10 +0000 (17:42 +0000)
 opened for edition) : use internal method to build the edited polyline to avoid
 Undo/Redo cover.

src/HYDROGUI/HYDROGUI_PolylineOp.cxx

index a73efdb351b380e2f6f338e88d7186d0077aa057..5932efc5882f118181575d28d7c7c075aef4d08f 100755 (executable)
@@ -114,7 +114,7 @@ void HYDROGUI_PolylineOp::startOperation()
       for( int j = 0 ; j < aPolylineData[i].myCoords.size() ; j++ ){
         aCoords.push_back(aPolylineData[i].myCoords[j]);
       }
-      myCurve->addSection( aName, aType, isClosed, aCoords );
+      myCurve->addSectionInternal( aName, aType, isClosed, aCoords );
     }
     aPanel->setPolylineName( myEditedObject->GetName() );