From 70c587f9168dbb78dee6a075e7224f93d4312b41 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 2d61460a3e..3cce6cf0ad 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;