Extensions: Revert few changes after restructuring
This commit is contained in:
@@ -130,7 +130,8 @@ void PropertyLink::Restore(Base::XMLReader &reader)
|
||||
assert(getContainer()->getTypeId().isDerivedFrom(App::DocumentObject::getClassTypeId()) );
|
||||
|
||||
if (name != "") {
|
||||
DocumentObject* parent = static_cast<DocumentObject*>(getContainer());
|
||||
DocumentObject* parent = static_cast<DocumentObject*>(getContainer());
|
||||
|
||||
App::Document* document = parent->getDocument();
|
||||
DocumentObject* object = document ? document->getObject(name.c_str()) : 0;
|
||||
if (!object) {
|
||||
@@ -479,9 +480,7 @@ void PropertyLinkSub::Restore(Base::XMLReader &reader)
|
||||
|
||||
DocumentObject *pcObject;
|
||||
if (!name.empty()) {
|
||||
if (!name.empty()) {
|
||||
|
||||
auto* parent = static_cast<DocumentObject*>(getContainer());
|
||||
App::Document* document = static_cast<DocumentObject*>(getContainer())->getDocument();
|
||||
pcObject = document ? document->getObject(name.c_str()) : 0;
|
||||
if (!pcObject) {
|
||||
if (reader.isVerbose()) {
|
||||
|
||||
Reference in New Issue
Block a user