From: vsv Date: Fri, 17 Apr 2015 15:10:05 +0000 (+0300) Subject: Issue #413: Update presentation on change display mode X-Git-Tag: V_1.1.0~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=41374259064188fb58b05b1ff32bf75ad75977d0;p=modules%2Fshaper.git Issue #413: Update presentation on change display mode --- diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index 58e16daa2..dd564aba0 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -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);