diff --git a/src/App/DocumentObject.cpp b/src/App/DocumentObject.cpp index aedcc38abe..f92103c0b0 100644 --- a/src/App/DocumentObject.cpp +++ b/src/App/DocumentObject.cpp @@ -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); }