fix crash when querying information about an object that is not part of a document
This commit is contained in:
@@ -479,7 +479,8 @@ bool DocumentObject::isTouched() const
|
||||
|
||||
void DocumentObject::Save (Base::Writer &writer) const
|
||||
{
|
||||
writer.ObjectName = this->getNameInDocument();
|
||||
if (this->getNameInDocument())
|
||||
writer.ObjectName = this->getNameInDocument();
|
||||
App::ExtensionContainer::Save(writer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user