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