Sketcher, 0000944: Fix crash when the equality constraint is activated with a wrong selection
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user