suppress error message if while restoring a document one of the lines or planes of an origin cannot be found

This commit is contained in:
wmayer
2018-10-23 23:12:25 +02:00
parent 27615abce1
commit 75ee3e4c25

View File

@@ -194,7 +194,11 @@ void ViewProviderOrigin::onChanged(const App::Property* prop) {
if (vpLineZ) { vpLineZ->Size.setValue ( szZ ); }
} catch (const Base::Exception &ex) {
Base::Console().Error ("%s\n", ex.what() );
// While restoring a document don't report errors if one of the lines or planes
// cannot be found.
App::Document* doc = getObject()->getDocument();
if (!doc->testStatus(App::Document::Restoring))
Base::Console().Error ("%s\n", ex.what() );
}
}