From c56d8b7866747514e82360b11bdd5699ee5621b1 Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 16 May 2007 13:10:02 +0000 Subject: [PATCH] Fix bug 15089: IOLS. Clipping planes doesn't work. Presentation was corrupted on 'Clipping Dialog' closure. --- src/VISUGUI/VisuGUI_ClippingDlg.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/VISUGUI/VisuGUI_ClippingDlg.cxx b/src/VISUGUI/VisuGUI_ClippingDlg.cxx index f6dac619..35f2c776 100644 --- a/src/VISUGUI/VisuGUI_ClippingDlg.cxx +++ b/src/VISUGUI/VisuGUI_ClippingDlg.cxx @@ -242,8 +242,10 @@ VisuGUI_ClippingDlg::VisuGUI_ClippingDlg (VisuGUI* theModule, WFlags fl) : QDialog(VISU::GetDesktop(theModule), name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | WDestructiveClose), - mySelectionMgr(VISU::GetSelectionMgr(theModule)), - myVisuGUI(theModule) + mySelectionMgr(VISU::GetSelectionMgr(theModule)), + myVisuGUI(theModule), + myPrs3d(0), + myIsSelectPlane(false) { if (!name) setName("VisuGUI_ClippingDlg"); @@ -355,8 +357,6 @@ VisuGUI_ClippingDlg::VisuGUI_ClippingDlg (VisuGUI* theModule, SpinBoxDistance->setValue(0.5); - myPrs3d = 0; - myIsSelectPlane = false; onSelectionChanged(); // signals and slots connections : @@ -612,8 +612,8 @@ void VisuGUI_ClippingDlg::onSelectionChanged() Handle(SALOME_InteractiveObject) anIO = aSelectionItem.myIO; if (!anIO.IsNull()) myIO = anIO; - - myPrs3d = dynamic_cast(aBase); + + SetPrs3d(dynamic_cast(aBase)); if (myPrs3d) { std::for_each(myPlanes.begin(),myPlanes.end(),TSetVisiblity(false)); myPlanes.clear(); -- 2.39.2