]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Clear selection on Close/Open context
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 5 Dec 2014 10:26:50 +0000 (13:26 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 5 Dec 2014 10:26:50 +0000 (13:26 +0300)
src/XGUI/XGUI_Displayer.cpp

index a658757613ed409d28f0d06ea77caa0f62167434..427d83fbb714ab07e459c565e31955932da11a15 100644 (file)
@@ -345,7 +345,7 @@ void XGUI_Displayer::openLocalContext()
     // in the closeLocalContex, which restore the global context filters
     aContext->RemoveFilters();
 
-    //aContext->ClearCurrents();
+    aContext->ClearCurrents();
     aContext->OpenLocalContext();
     aContext->NotUseDisplayedObjects();
 
@@ -378,7 +378,7 @@ void XGUI_Displayer::closeLocalContexts(const bool isUpdateViewer)
     SelectMgr_ListOfFilter aFilters;
     aFilters.Assign(aContext->Filters());
 
-    //aContext->ClearSelected();
+    aContext->ClearSelected();
     aContext->CloseAllContexts(false);
 
     // Redisplay all object if they were displayed in localContext