From: nds Date: Thu, 25 Jun 2015 12:18:44 +0000 (+0300) Subject: The control should not be interactive in edit mode like it is in point selector control. X-Git-Tag: V_1.3.0~186 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=89aeee12f9f793e37165457ae46edbbf6aec1a26;p=modules%2Fshaper.git The control should not be interactive in edit mode like it is in point selector control. --- diff --git a/src/PartSet/PartSet_WidgetPoint2dDistance.cpp b/src/PartSet/PartSet_WidgetPoint2dDistance.cpp index 07cf1877b..f4c5bc6d1 100644 --- a/src/PartSet/PartSet_WidgetPoint2dDistance.cpp +++ b/src/PartSet/PartSet_WidgetPoint2dDistance.cpp @@ -116,6 +116,9 @@ void PartSet_WidgetPoint2dDistance::onMouseRelease(ModuleBase_IViewWindow* theWn void PartSet_WidgetPoint2dDistance::onMouseMove(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent) { + if (isEditingMode()) + return; + if (mySpinBox->hasVariable()) return;