Oops, didn't clear the hover when auto-deleting horiz/vert

constraints when adding symmetric constraints. So that could blow
up and trigger an oops.

[git-p4: depot-paths = "//depot/solvespace/": change = 1851]
solver
Jonathan Westhues 2008-02-07 09:17:09 -08:00
parent 04141aa59d
commit a58680201f
1 changed files with 4 additions and 1 deletions

View File

@ -359,7 +359,10 @@ void Constraint::MenuConstrain(int id) {
}
SS.constraint.RemoveTagged();
// And no need to do anything special, since nothing
// ever depends on a constraint.
// ever depends on a constraint. But do clear the
// hover, in case the just-deleted constraint was
// hovered.
SS.GW.hover.Clear();
}
} else {
// Symmetry with a symmetry plane specified explicitly.