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]
solver
Jonathan Westhues 2008-05-17 18:18:47 -08:00
parent 30ad41f4a2
commit 4b6f8eabb6
1 changed files with 4 additions and 0 deletions

View File

@ -205,6 +205,10 @@ void SolveSpace::GenerateAll(bool andSolve) {
deleted.constraints, deleted.constraints == 1 ? "" : "s", deleted.constraints, deleted.constraints == 1 ? "" : "s",
deleted.groups, deleted.groups == 1 ? "" : "s"); deleted.groups, deleted.groups == 1 ? "" : "s");
memset(&deleted, 0, sizeof(deleted)); 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; return;