From: nds Date: Thu, 6 Nov 2014 19:41:02 +0000 (+0300) Subject: refs #240 - Selection of dimension for edit X-Git-Tag: V_0.5~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=36e0e95354b373209095959c800b9dacf7538d89;p=modules%2Fshaper.git refs #240 - Selection of dimension for edit the active widget is a selection control. The operation should not be committed on the mouse release. Only if it is a last selected widget. The disappearance of the property panel is corrected for the perpendicular constraint edition. The case is call edit on a perpendicular constraint, select any line, it is applied as a first parameter, but the property panel is hidden. --- diff --git a/src/PartSet/PartSet_OperationFeatureBase.cpp b/src/PartSet/PartSet_OperationFeatureBase.cpp index 551fbfe8d..6beb71ca4 100644 --- a/src/PartSet/PartSet_OperationFeatureBase.cpp +++ b/src/PartSet/PartSet_OperationFeatureBase.cpp @@ -101,6 +101,11 @@ void PartSet_OperationFeatureBase::mouseReleased(QMouseEvent* theEvent, ModuleBa flushUpdated(); myPropertyPanel->activateNextWidget(); } + // the operation can be committed only when there is no an active widget anymore + // if this check is absent, the edit operation for constraint perpendicular is stopped + // after the first object selection in the viewer(there are two objects to be selected) + // the second case is the constraint distance, the edit is stopped after any mouse click + // in the viewer whenever it is applyed or not to the selection control if (!myPropertyPanel->activeWidget()) commit(); }