From 2882b3284c5b2ea9f118b0a97e0d4dce8e103c0a Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 15 Apr 2015 11:21:54 +0300 Subject: [PATCH] parameters use: the mouse move/release should not be processed if the variable is used in the double control --- src/PartSet/PartSet_WidgetPoint2dDistance.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/PartSet/PartSet_WidgetPoint2dDistance.cpp b/src/PartSet/PartSet_WidgetPoint2dDistance.cpp index e8d24eb51..288fa3b95 100644 --- a/src/PartSet/PartSet_WidgetPoint2dDistance.cpp +++ b/src/PartSet/PartSet_WidgetPoint2dDistance.cpp @@ -94,6 +94,9 @@ void PartSet_WidgetPoint2dDistance::onMouseRelease(ModuleBase_IViewWindow* theWn if (theEvent->button() != Qt::LeftButton) return; + if (mySpinBox->hasVariable()) + return; + gp_Pnt aPoint = PartSet_Tools::convertClickToPoint(theEvent->pos(), theWnd->v3dView()); double aX, aY; @@ -106,6 +109,9 @@ void PartSet_WidgetPoint2dDistance::onMouseRelease(ModuleBase_IViewWindow* theWn void PartSet_WidgetPoint2dDistance::onMouseMove(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent) { + if (mySpinBox->hasVariable()) + return; + myWorkshop->operationMgr()->setLockValidating(true); myWorkshop->operationMgr()->setApplyEnabled(false); -- 2.39.2