From: akl Date: Thu, 7 Nov 2013 11:40:15 +0000 (+0000) Subject: Don't take into account the selected polyline if creation operation was called. X-Git-Tag: BR_hydro_v_0_3~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bc0fcc650488c766a8e67c060c8cb182b404af26;p=modules%2Fhydro.git Don't take into account the selected polyline if creation operation was called. --- diff --git a/src/HYDROGUI/HYDROGUI_PolylineOp.cxx b/src/HYDROGUI/HYDROGUI_PolylineOp.cxx index 66a3ca9f..b7384b70 100755 --- a/src/HYDROGUI/HYDROGUI_PolylineOp.cxx +++ b/src/HYDROGUI/HYDROGUI_PolylineOp.cxx @@ -72,7 +72,8 @@ void HYDROGUI_PolylineOp::startOperation() HYDROGUI_PolylineDlg* aPanel = (HYDROGUI_PolylineDlg*)inputPanel(); aPanel->reset(); - myEditedObject = Handle(HYDROData_Polyline)::DownCast( HYDROGUI_Tool::GetSelectedObject( module() ) ); + if( myIsEdit ) + myEditedObject = Handle(HYDROData_Polyline)::DownCast( HYDROGUI_Tool::GetSelectedObject( module() ) ); if( !myEditedObject.IsNull() ) { int anIntDim = myEditedObject->GetDimension();