From: nds Date: Tue, 19 Nov 2013 10:34:08 +0000 (+0000) Subject: Set zero viewer for the pane in order to close local selection inside the viewer... X-Git-Tag: BR_hydro_v_0_3_1~64 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=86d45025a7beddb5afeec858f2717056d6fe2ef8;p=modules%2Fhydro.git Set zero viewer for the pane in order to close local selection inside the viewer and disconnect it. --- diff --git a/src/HYDROGUI/HYDROGUI_PolylineOp.cxx b/src/HYDROGUI/HYDROGUI_PolylineOp.cxx index 258c0f5b..0cd16bf7 100755 --- a/src/HYDROGUI/HYDROGUI_PolylineOp.cxx +++ b/src/HYDROGUI/HYDROGUI_PolylineOp.cxx @@ -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();