From a58680201f043bd846567a6e89a9623b5b445aac Mon Sep 17 00:00:00 2001 From: Jonathan Westhues Date: Thu, 7 Feb 2008 09:17:09 -0800 Subject: [PATCH] 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] --- constraint.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/constraint.cpp b/constraint.cpp index aa73311..c95412b 100644 --- a/constraint.cpp +++ b/constraint.cpp @@ -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.