From: jfa Date: Wed, 16 May 2007 13:10:02 +0000 (+0000) Subject: Fix bug 15089: IOLS. Clipping planes doesn't work. Presentation was corrupted on... X-Git-Tag: mergeto_BR_Dev_For_4_0_21May07~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c56d8b7866747514e82360b11bdd5699ee5621b1;p=modules%2Fvisu.git Fix bug 15089: IOLS. Clipping planes doesn't work. Presentation was corrupted on 'Clipping Dialog' closure. --- 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();