Fix #148 catch errors when computing model bounding box from product placements.

This commit is contained in:
Thomas Krijnen
2016-10-25 10:11:14 +02:00
parent 229b123798
commit ea514e9528
2 changed files with 18 additions and 11 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
Logger::Message(Logger::LOG_ERROR, std::string(e.what()) + "\nFailed to convert:", l->entity); \
return false; \
} catch (const Standard_Failure& f) { \
if (f.GetMessageString()) \
if (f.GetMessageString() && strlen(f.GetMessageString())) \
Logger::Message(Logger::LOG_ERROR, std::string("Error in: ") + f.GetMessageString() + "\nFailed to convert:", l->entity); \
else \
Logger::Message(Logger::LOG_ERROR, "Failed to convert:", l->entity); \