From 9940819f697eb46bd7d7fc2945e0dec39db25536 Mon Sep 17 00:00:00 2001 From: akl Date: Thu, 21 Nov 2013 17:42:10 +0000 Subject: [PATCH] Fix bug #123 (Undo is enabled for polyline that just was opened for edition) : use internal method to build the edited polyline to avoid Undo/Redo cover. --- src/HYDROGUI/HYDROGUI_PolylineOp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HYDROGUI/HYDROGUI_PolylineOp.cxx b/src/HYDROGUI/HYDROGUI_PolylineOp.cxx index a73efdb3..5932efc5 100755 --- a/src/HYDROGUI/HYDROGUI_PolylineOp.cxx +++ b/src/HYDROGUI/HYDROGUI_PolylineOp.cxx @@ -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() ); -- 2.39.2