PAL11188: PAL_NO_ERROR on Explode, if the main shape is not displayed, but some of its sub-shapes are.

This commit is contained in:
jfa 2006-01-23 08:47:11 +00:00
parent 4af204fbc1
commit 0c66d62337

View File

@ -838,12 +838,13 @@ void GEOM_Displayer::LocalSelection( const Handle(SALOME_InteractiveObject)& the
sm->clearFilters();
SALOME_View* vf = GetActiveView();
if ( vf )
{
SALOME_Prs* prs = vf->CreatePrs( theIO.IsNull() ? 0 : theIO->getEntry() );
vf->LocalSelection( prs, theMode );
delete prs; // delete presentation because displayer is its owner
}
if ( vf ) {
if (!theIO.IsNull() && !vf->isVisible(theIO))
Display(theIO);
SALOME_Prs* prs = vf->CreatePrs( theIO.IsNull() ? 0 : theIO->getEntry() );
vf->LocalSelection( prs, theMode );
delete prs; // delete presentation because displayer is its owner
}
}
//=================================================================