]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
PAL11188: PAL_NO_ERROR on Explode, if the main shape is not displayed, but some of...
authorjfa <jfa@opencascade.com>
Mon, 23 Jan 2006 08:47:11 +0000 (08:47 +0000)
committerjfa <jfa@opencascade.com>
Mon, 23 Jan 2006 08:47:11 +0000 (08:47 +0000)
src/GEOMGUI/GEOM_Displayer.cxx

index def483eb21a54e4e3875ff54f1fd3dfc370a63e7..db50bc54e8fac67041f5eb171baaffbaa71b25f9 100644 (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
+  }
 }
 
 //=================================================================