From 0c66d62337fc4f22b333c7738c1d8b1d356a0430 Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 23 Jan 2006 08:47:11 +0000 Subject: [PATCH] PAL11188: PAL_NO_ERROR on Explode, if the main shape is not displayed, but some of its sub-shapes are. --- src/GEOMGUI/GEOM_Displayer.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index def483eb2..db50bc54e 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -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 + } } //================================================================= -- 2.39.2