Commit 7da2ecac authored by logari81's avatar logari81 Committed by jriegel
Browse files

Sketcher, 0000944: Fix crash when the equality constraint is activated with a wrong selection

parent bb967df7
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment