From: akl Date: Thu, 21 Nov 2013 17:42:10 +0000 (+0000) Subject: Fix bug #123 (Undo is enabled for polyline that just was X-Git-Tag: BR_hydro_v_0_3_1~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9940819f697eb46bd7d7fc2945e0dec39db25536;p=modules%2Fhydro.git 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. --- 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() );