]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Don't take into account the selected polyline if creation operation was called.
authorakl <akl@opencascade.com>
Thu, 7 Nov 2013 11:40:15 +0000 (11:40 +0000)
committerakl <akl@opencascade.com>
Thu, 7 Nov 2013 11:40:15 +0000 (11:40 +0000)
src/HYDROGUI/HYDROGUI_PolylineOp.cxx

index 66a3ca9f49a9d449d8ef6f8b7aaa8cfda263f260..b7384b705518ec40cac92cfbb0e7e9374c957a24 100755 (executable)
@@ -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();