Skip to content

Commit

Permalink
ObjectIdentifier: Issue #2389: Needs to set documentNameSet and docum…
Browse files Browse the repository at this point in the history
…entObjectNameSet to true to resolve properly.
  • Loading branch information
eivindkv authored and wwmayer committed Jan 26, 2016
1 parent 22d77b7 commit 670eaf0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/App/ObjectIdentifier.cpp
Expand Up @@ -125,7 +125,9 @@ ObjectIdentifier::ObjectIdentifier(const App::PropertyContainer * _owner, const
const Document * doc = docObj->getDocument();

documentName = String(doc->getName(), false, true);
documentNameSet = true;
documentObjectName = String(docObj->getNameInDocument(), false, true);
documentObjectNameSet = true;

}
if (property.size() > 0)
Expand All @@ -139,8 +141,8 @@ ObjectIdentifier::ObjectIdentifier(const App::PropertyContainer * _owner, const

ObjectIdentifier::ObjectIdentifier(const Property &prop)
: owner(prop.getContainer())
, documentNameSet(false)
, documentObjectNameSet(false)
, documentNameSet(true)
, documentObjectNameSet(true)
, propertyIndex(-1)
{
DocumentObject * docObj = freecad_dynamic_cast<DocumentObject>(prop.getContainer());
Expand Down

0 comments on commit 670eaf0

Please sign in to comment.