From: vsv Date: Sat, 26 Dec 2015 15:58:07 +0000 (+0300) Subject: Update viewer on close just started sketcher X-Git-Tag: V_2.1.0~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=77cc31f9ed02386ab3201ff22def4ff6da9bdd08;p=modules%2Fshaper.git Update viewer on close just started sketcher --- diff --git a/src/PartSet/PartSet_WidgetSketchLabel.cpp b/src/PartSet/PartSet_WidgetSketchLabel.cpp index 846ea9999..a9496370b 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.cpp +++ b/src/PartSet/PartSet_WidgetSketchLabel.cpp @@ -338,10 +338,13 @@ void PartSet_WidgetSketchLabel::activateCustom() void PartSet_WidgetSketchLabel::deactivate() { ModuleBase_ModelWidget::deactivate(); + bool aHidePreview = myPreviewDisplayed; erasePreviewPlanes(); activateSelection(false); activateFilters(false); + if (aHidePreview) + myWorkshop->viewer()->update(); } void PartSet_WidgetSketchLabel::activateSelection(bool toActivate)