Oops, feeding garbage to the SolveSpace file load routines would
make it return with the program in a bad state and blow up later; so fix at least one easy case of that. [git-p4: depot-paths = "//depot/solvespace/": change = 2114]solver
parent
c95e5c1614
commit
46cabb4d73
4
file.cpp
4
file.cpp
|
@ -464,6 +464,10 @@ bool SolveSpace::LoadFromFile(char *filename) {
|
||||||
if(fileLoadError) {
|
if(fileLoadError) {
|
||||||
Error("Unrecognized data in file. This file may be corrupt, or "
|
Error("Unrecognized data in file. This file may be corrupt, or "
|
||||||
"from a new version of the program.");
|
"from a new version of the program.");
|
||||||
|
// At least leave the program in a non-crashing state.
|
||||||
|
if(SK.group.n == 0) {
|
||||||
|
NewFile();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
replace show/hide links with icons?
|
replace show/hide links with icons?
|
||||||
lock point where dragged constraint
|
lock point where dragged constraint
|
||||||
projected and signed distance constraints
|
projected and signed distance constraints
|
||||||
|
rounding, as a special group
|
||||||
|
associative entities from solid model, as a special group
|
||||||
|
|
||||||
-----
|
-----
|
||||||
better level of detail
|
better level of detail
|
||||||
associative entities from solid model, as a special group
|
|
||||||
some kind of import
|
some kind of import
|
||||||
faster triangulation
|
faster triangulation
|
||||||
loop detection
|
loop detection
|
||||||
IGES export
|
IGES export
|
||||||
incremental regen of entities
|
incremental regen of entities
|
||||||
rounding, as a special group
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue