From 4b6f8eabb6d3813035a0e24215331155938c1dc2 Mon Sep 17 00:00:00 2001 From: Jonathan Westhues Date: Sat, 17 May 2008 18:18:47 -0800 Subject: [PATCH] Clear selection etc. after deleting items due to a failed dependency; no telling what might be out of date after that. [git-p4: depot-paths = "//depot/solvespace/": change = 1730] --- solvespace.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/solvespace.cpp b/solvespace.cpp index 91dde18..fd5fcec 100644 --- a/solvespace.cpp +++ b/solvespace.cpp @@ -205,6 +205,10 @@ void SolveSpace::GenerateAll(bool andSolve) { deleted.constraints, deleted.constraints == 1 ? "" : "s", deleted.groups, deleted.groups == 1 ? "" : "s"); memset(&deleted, 0, sizeof(deleted)); + // All sorts of interesting things could have happened; for example, + // the active group or active workplane could have been deleted. So + // clear all that out. + GW.ClearSuper(); } return;