From dfff7fba5da52b9d861e6a6b758d1244261f6b0e Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 2 Aug 2014 17:52:12 +0200 Subject: [PATCH] + fix bug when releasing button after dragging point or curve --- src/Mod/Sketcher/Gui/ViewProviderSketch.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index 03794e82d4..3f5b49e16d 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -682,7 +682,7 @@ bool ViewProviderSketch::mouseButtonPressed(int Button, bool pressed, const SbVe Mode = STATUS_NONE; return true; case STATUS_SKETCH_DragPoint: - if (edit->DragPoint != -1 && pp) { + if (edit->DragPoint != -1) { int GeoId; Sketcher::PointPos PosId; getSketchObject()->getGeoVertexIndex(edit->DragPoint, GeoId, PosId); @@ -702,7 +702,7 @@ bool ViewProviderSketch::mouseButtonPressed(int Button, bool pressed, const SbVe Mode = STATUS_NONE; return true; case STATUS_SKETCH_DragCurve: - if (edit->DragCurve != -1 && pp) { + if (edit->DragCurve != -1) { const Part::Geometry *geo = getSketchObject()->getGeometry(edit->DragCurve); if (geo->getTypeId() == Part::GeomLineSegment::getClassTypeId() || geo->getTypeId() == Part::GeomArcOfCircle::getClassTypeId() || @@ -723,10 +723,10 @@ bool ViewProviderSketch::mouseButtonPressed(int Button, bool pressed, const SbVe Mode = STATUS_NONE; return true; case STATUS_SKETCH_DragConstraint: - if ((edit->DragConstraintSet.empty() == false) && pp) { + if (edit->DragConstraintSet.empty() == false) { + Gui::Command::openCommand("Drag Constraint"); for(std::set::iterator it = edit->DragConstraintSet.begin(); it != edit->DragConstraintSet.end(); ++it) { - Gui::Command::openCommand("Drag Constraint"); moveConstraint(*it, Base::Vector2D(x, y)); //updateColor(); }