From: nds Date: Mon, 2 Jun 2014 06:04:57 +0000 (+0400) Subject: refs #78 - reported by Hervé Legrand: do not create segment if mouse moved out of... X-Git-Tag: V_0.4.4~336^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=34c46a257bb44fad987862c37ba6bfb0945b98aa;p=modules%2Fshaper.git refs #78 - reported by Hervé Legrand: do not create segment if mouse moved out of 3D viewer without click Accept any key to set the second point in order to apply the line creation even if the "Enter" has not been pressed in the second point widget It is right, for the current version, that the "Tab" emulates to the second point selection in the viewer. --- diff --git a/src/PartSet/PartSet_OperationSketchLine.cpp b/src/PartSet/PartSet_OperationSketchLine.cpp index 4ca7d3200..1a1cdbc0e 100644 --- a/src/PartSet/PartSet_OperationSketchLine.cpp +++ b/src/PartSet/PartSet_OperationSketchLine.cpp @@ -209,7 +209,8 @@ void PartSet_OperationSketchLine::mouseMoved(QMouseEvent* theEvent, Handle(V3d_V void PartSet_OperationSketchLine::keyReleased(std::string theName, QKeyEvent* theEvent) { int aKeyType = theEvent->key(); - if (!theName.empty() && aKeyType == Qt::Key_Return) { + // the second point should be activated by any modification in the property panel + if (!theName.empty() /*&& aKeyType == Qt::Key_Return*/) { if (theName == LINE_ATTR_START) { setPointSelectionMode(SM_SecondPoint, false); }