Fix crash when trying to import not .dxf or .dwg files
This commit is contained in:
parent
fdd08cbead
commit
489ae66e96
|
@ -544,7 +544,10 @@ void SolveSpaceUI::MenuFile(Command id) {
|
||||||
ImportDxf(importFile);
|
ImportDxf(importFile);
|
||||||
} else if(Extension(importFile) == "dwg") {
|
} else if(Extension(importFile) == "dwg") {
|
||||||
ImportDwg(importFile);
|
ImportDwg(importFile);
|
||||||
} else ssassert(false, "Unexpected extension of file to import");
|
} else {
|
||||||
|
Error("Can't identify file type from file extension of "
|
||||||
|
"filename '%s'; try .dxf or .dwg.", importFile.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
SS.GenerateAll(SolveSpaceUI::Generate::UNTIL_ACTIVE);
|
SS.GenerateAll(SolveSpaceUI::Generate::UNTIL_ACTIVE);
|
||||||
SS.ScheduleShowTW();
|
SS.ScheduleShowTW();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user