From ac010de9c966b1b05c6a3b3f6fa0794cf9b89247 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 28 Sep 2014 15:06:02 +0200 Subject: [PATCH] + fix minor bug when adding coincidence constraint --- src/Mod/Sketcher/Gui/CommandConstraints.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Sketcher/Gui/CommandConstraints.cpp b/src/Mod/Sketcher/Gui/CommandConstraints.cpp index 90d14b158..caca46a0c 100644 --- a/src/Mod/Sketcher/Gui/CommandConstraints.cpp +++ b/src/Mod/Sketcher/Gui/CommandConstraints.cpp @@ -561,11 +561,11 @@ void CmdSketcherConstrainCoincident::activated(int iMsg) bool constraintExists=false; for (std::vector< Sketcher::Constraint * >::const_iterator it= vals.begin(); it != vals.end(); ++it) { - if ((*it)->Type == Sketcher::Coincident && - ( (*it)->First == GeoId1 && (*it)->FirstPos == PosId1 && + if ((*it)->Type == Sketcher::Coincident && ( + ((*it)->First == GeoId1 && (*it)->FirstPos == PosId1 && (*it)->Second == GeoId2 && (*it)->SecondPos == PosId2 ) || - ( (*it)->First == GeoId2 && (*it)->FirstPos == PosId2 && - (*it)->Second == GeoId1 && (*it)->SecondPos == PosId1 ) ) { + ((*it)->First == GeoId2 && (*it)->FirstPos == PosId2 && + (*it)->Second == GeoId1 && (*it)->SecondPos == PosId1 ) ) ) { constraintExists=true; break; }