mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-11 13:43:07 +05:00
Fix crash on restore GUI state
This commit is contained in:
parent
26f2b64fce
commit
72c341cf7a
@ -1629,7 +1629,7 @@ void GeometryGUI::onViewManagerRemoved( SUIT_ViewManager* vm )
|
|||||||
if ( GEOMGUI_OCCSelector* sr = itOCCSel.next() )
|
if ( GEOMGUI_OCCSelector* sr = itOCCSel.next() )
|
||||||
if ( sr->viewer() == viewer )
|
if ( sr->viewer() == viewer )
|
||||||
{
|
{
|
||||||
delete myOCCSelectors.takeAt( myOCCSelectors.indexOf( sr ) );
|
/*delete*/ myOCCSelectors.takeAt( myOCCSelectors.indexOf( sr ) );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1640,7 +1640,7 @@ void GeometryGUI::onViewManagerRemoved( SUIT_ViewManager* vm )
|
|||||||
if ( LightApp_VTKSelector* sr = itVTKSel.next() )
|
if ( LightApp_VTKSelector* sr = itVTKSel.next() )
|
||||||
if ( sr->viewer() == viewer )
|
if ( sr->viewer() == viewer )
|
||||||
{
|
{
|
||||||
delete myVTKSelectors.takeAt( myVTKSelectors.indexOf( sr ) );
|
/*delete*/ myVTKSelectors.takeAt( myVTKSelectors.indexOf( sr ) );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user