]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix bug 15089: IOLS. Clipping planes doesn't work. Presentation was corrupted on...
authorjfa <jfa@opencascade.com>
Wed, 16 May 2007 13:10:02 +0000 (13:10 +0000)
committerjfa <jfa@opencascade.com>
Wed, 16 May 2007 13:10:02 +0000 (13:10 +0000)
src/VISUGUI/VisuGUI_ClippingDlg.cxx

index f6dac619bedcb09499a3321dade04a54301e0852..35f2c7765e660de4a4d3328423384b95aebf3988 100644 (file)
@@ -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<VISU::Prs3d_i*>(aBase);
+
+    SetPrs3d(dynamic_cast<VISU::Prs3d_i*>(aBase));
     if (myPrs3d) {
       std::for_each(myPlanes.begin(),myPlanes.end(),TSetVisiblity(false));
       myPlanes.clear();