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

This commit is contained in:
logari81
2013-01-12 14:41:23 +01:00
committed by jriegel
parent bb967df728
commit 7da2ecacbd
+1 -1
View File
@@ -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;