]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Set zero viewer for the pane in order to close local selection inside the viewer...
authornds <nds@opencascade.com>
Tue, 19 Nov 2013 10:34:08 +0000 (10:34 +0000)
committernds <nds@opencascade.com>
Tue, 19 Nov 2013 10:34:08 +0000 (10:34 +0000)
src/HYDROGUI/HYDROGUI_PolylineOp.cxx

index 258c0f5b43a004a420f8a2fd590c06dff14544ee..0cd16bf7bb3614f6954a2573c9e878f153b570b6 100755 (executable)
@@ -114,6 +114,9 @@ void HYDROGUI_PolylineOp::startOperation()
 
 void HYDROGUI_PolylineOp::abortOperation()
 {
+  HYDROGUI_PolylineDlg* aPanel = (HYDROGUI_PolylineDlg*)inputPanel();
+  if ( aPanel )
+    aPanel->setOCCViewer( 0 );
   erasePreview();
 
   HYDROGUI_Operation::abortOperation();
@@ -121,6 +124,9 @@ void HYDROGUI_PolylineOp::abortOperation()
 
 void HYDROGUI_PolylineOp::commitOperation()
 {
+  HYDROGUI_PolylineDlg* aPanel = (HYDROGUI_PolylineDlg*)inputPanel();
+  if ( aPanel )
+    aPanel->setOCCViewer( 0 );
   erasePreview();
 
   HYDROGUI_Operation::commitOperation();