]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix crash on restore GUI state
authorvsr <vsr@opencascade.com>
Tue, 29 Jan 2013 06:02:28 +0000 (06:02 +0000)
committervsr <vsr@opencascade.com>
Tue, 29 Jan 2013 06:02:28 +0000 (06:02 +0000)
src/GEOMGUI/GeometryGUI.cxx

index 048e9d3eabc72ea100f84c10de365f5d2a53d432..b1842e9c8af865de55cf7790b793d967ac0fd6c2 100644 (file)
@@ -1629,7 +1629,7 @@ void GeometryGUI::onViewManagerRemoved( SUIT_ViewManager* vm )
       if ( GEOMGUI_OCCSelector* sr = itOCCSel.next() )
         if ( sr->viewer() == viewer )
         {
-          delete myOCCSelectors.takeAt( myOCCSelectors.indexOf( sr ) );
+          /*delete*/ myOCCSelectors.takeAt( myOCCSelectors.indexOf( sr ) );
           break;
         }
   }
@@ -1640,7 +1640,7 @@ void GeometryGUI::onViewManagerRemoved( SUIT_ViewManager* vm )
       if ( LightApp_VTKSelector* sr = itVTKSel.next() )
         if ( sr->viewer() == viewer )
         {
-          delete myVTKSelectors.takeAt( myVTKSelectors.indexOf( sr ) );
+          /*delete*/ myVTKSelectors.takeAt( myVTKSelectors.indexOf( sr ) );
           break;
         }
   }