]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for bug IPAL12672("Change Clipping" leads to "Fatal error: Attempt to access...
authormzn <mzn@opencascade.com>
Mon, 28 Aug 2006 14:14:06 +0000 (14:14 +0000)
committermzn <mzn@opencascade.com>
Mon, 28 Aug 2006 14:14:06 +0000 (14:14 +0000)
src/VISUGUI/VisuGUI_ClippingDlg.cxx

index bff927aecbeb321dc5baa164d0040d4553afad5d..87195d3193366917fb153598090a4f82d9b36d89 100644 (file)
@@ -599,8 +599,11 @@ void VisuGUI_ClippingDlg::onSelectionChanged()
   if (SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow<SVTK_ViewWindow>(myVisuGUI)) {
     Handle(SALOME_InteractiveObject) anIO;
     CORBA::Object_var anObject = VISU::GetSelectedObj(myVisuGUI, &anIO);
-    myIO = anIO;
     if (CORBA::is_nil(anObject)) return;
+    
+    if (!anIO.IsNull()) 
+      myIO = anIO;
+    
     PortableServer::ServantBase_var aServant = VISU::GetServant(anObject);
     if (!aServant.in()) return;
 
@@ -1148,4 +1151,4 @@ void VisuGUI_ClippingDlg::keyPressEvent( QKeyEvent* e )
       e->accept();
       ClickOnHelp();
     }
-}
\ No newline at end of file
+}