From 3cdf8f4350ababe0b6d1dfc85cda8bdd80864c5c Mon Sep 17 00:00:00 2001 From: logari81 Date: Thu, 10 Jan 2013 15:48:38 +0100 Subject: [PATCH] Sketcher, 0000944: Fix crash when the equality constraint is activated with a wrong selection --- src/Mod/Sketcher/Gui/CommandConstraints.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/Gui/CommandConstraints.cpp b/src/Mod/Sketcher/Gui/CommandConstraints.cpp index 2d61460a3..3cce6cf0a 100644 --- a/src/Mod/Sketcher/Gui/CommandConstraints.cpp +++ b/src/Mod/Sketcher/Gui/CommandConstraints.cpp @@ -1721,7 +1721,7 @@ void CmdSketcherConstrainEqual::activated(int iMsg) Sketcher::PointPos PosId; getIdsFromName(*it, Obj, GeoId, PosId); - if (isVertex(GeoId,PosId)) { + if (!isEdge(GeoId,PosId)) { QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"), QObject::tr("Select two or more compatible edges")); return;