]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #413: Update presentation on change display mode
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 17 Apr 2015 15:10:05 +0000 (18:10 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 17 Apr 2015 15:10:05 +0000 (18:10 +0300)
src/XGUI/XGUI_Displayer.cpp

index 58e16daa26a1ed1a44e45e49badd85efea9821ce..dd564aba08280ce8f647e08a38eadbda7f37a1d4 100644 (file)
@@ -670,6 +670,8 @@ void XGUI_Displayer::setDisplayMode(ObjectPtr theObject, DisplayMode theMode, bo
     closeLocalContexts(false);
   }
   aContext->SetDisplayMode(aAISIO, theMode, false);
+  // Redisplay in order to update new mode because it could be not computed before
+  aContext->Redisplay(aAISIO, false);
   if (aCanBeShaded) {
     openLocalContext();
     activateObjects(myActiveSelectionModes);