]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Correct of compilation errors
authorvsv <vitaly.smetannikov@opencascade.com>
Sat, 27 Dec 2014 08:09:47 +0000 (11:09 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Sat, 27 Dec 2014 08:09:47 +0000 (11:09 +0300)
src/XGUI/XGUI_Displayer.cpp

index ff5bed22fd7fa6bc6b61e3a4afe51d7b92f813ff..1e65fb9e24919977455ec7cf178047d53509de12 100644 (file)
@@ -629,12 +629,14 @@ void XGUI_Displayer::setDisplayMode(ObjectPtr theObject, DisplayMode theMode, bo
     myWorkshop->selector()->selection()->selectedOwners(aSelectedOwners);
     closeLocalContexts(false);
   }
-  aContext->SetDisplayMode(aAISIO, theMode, toUpdate);
+  aContext->SetDisplayMode(aAISIO, theMode, false);
   if (aCanBeShaded) {
     openLocalContext();
     activateObjects(myActiveSelectionModes);
-    myWorkshop->selector()->setSelectedOwners(aSelectedOwners);
+    myWorkshop->selector()->setSelectedOwners(aSelectedOwners, false);
   }
+  if (toUpdate)
+    updateViewer();
 }
 
 XGUI_Displayer::DisplayMode XGUI_Displayer::displayMode(ObjectPtr theObject) const