erasePreviewPlanes();
}
+bool PartSet_WidgetSketchLabel::setSelection(const QList<ModuleBase_ViewerPrs>& theValues, int& thePosition)
+{
+ // do not use the given selection if the plane of the sketch has been already set.
+ // If this check is absent, a selected plane in the viewer can be set in the sketch
+ // even if the sketch is built on another plane.
+ if (plane().get())
+ return true;
+
+ return ModuleBase_WidgetValidated::setSelection(theValues, thePosition);
+}
+
QList<QWidget*> PartSet_WidgetSketchLabel::getControls() const
{
QList<QWidget*> aResult;