X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_WidgetSketchLabel.cpp;h=44656f2ab1bc5c77211c40a74115f53515057d03;hb=857b1f72d9703c46c6c8c9bb239821d314344c86;hp=f3d4179c3baa189cd031257265635720fa9661f6;hpb=f6983bbb20107bac8e14360131ae763990d382f7;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_WidgetSketchLabel.cpp b/src/PartSet/PartSet_WidgetSketchLabel.cpp index f3d4179c3..44656f2ab 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.cpp +++ b/src/PartSet/PartSet_WidgetSketchLabel.cpp @@ -80,7 +80,6 @@ PartSet_WidgetSketchLabel::PartSet_WidgetSketchLabel(QWidget* theParent, PartSet_WidgetSketchLabel::~PartSet_WidgetSketchLabel() { - erasePreviewPlanes(); } bool PartSet_WidgetSketchLabel::setSelection(QList& theValues, @@ -116,8 +115,10 @@ void PartSet_WidgetSketchLabel::onSelectionChanged() ModuleBase_ViewerPrs aPrs = aSelected.first(); bool aDone = ModuleBase_WidgetValidated::setSelection(aSelected, false); - if (aDone) + if (aDone) { updateByPlaneSelected(aPrs); + updateObject(myFeature); + } } void PartSet_WidgetSketchLabel::updateByPlaneSelected(const ModuleBase_ViewerPrs& thePrs)