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

This commit is contained in:
logari81 2013-01-10 15:48:38 +01:00
parent 860a65d0a6
commit 3cdf8f4350

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;