Skip to content

Commit

Permalink
App: fix PropertyXLink file path update
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder authored and wwmayer committed Oct 8, 2019
1 parent fbfad66 commit 3de3f69
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/App/PropertyLinks.cpp
Expand Up @@ -2934,6 +2934,10 @@ void PropertyXLink::setValue(App::DocumentObject *lValue,
unlink();
docInfo = info;
}
if(docInfo)
filePath = docInfo->filePath();
else
filePath.clear();
_pcLink=lValue;
if(docInfo && docInfo->pcDoc)
stamp=docInfo->pcDoc->LastModifiedDate.getValue();
Expand Down Expand Up @@ -2977,6 +2981,10 @@ void PropertyXLink::setValue(std::string &&filename, std::string &&name,
unlink();
docInfo = info;
}
if(docInfo)
filePath = docInfo->filePath();
else
filePath.clear();
if(docInfo && docInfo->pcDoc)
stamp=docInfo->pcDoc->LastModifiedDate.getValue();
objectName = std::move(name);
Expand Down

0 comments on commit 3de3f69

Please sign in to comment.