From 86d45025a7beddb5afeec858f2717056d6fe2ef8 Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 19 Nov 2013 10:34:08 +0000 Subject: [PATCH] Set zero viewer for the pane in order to close local selection inside the viewer and disconnect it. --- src/HYDROGUI/HYDROGUI_PolylineOp.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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(); -- 2.39.2