Does not rely on the pointervalue returned by getNameInDocument() to use as a DAG key.

In order to make getNameInDocument() always return a valid string,
we implement a getDagKey() method that shall be used instead of getNameInDocument()
when we want to use the pointer value as a "key" to identify the DocumentObject.
This commit is contained in:
André Caldas
2023-10-21 22:37:58 -03:00
committed by Chris Hennes
parent c6911695e7
commit 0cbc9cd66e
4 changed files with 14 additions and 3 deletions

View File

@@ -225,7 +225,7 @@ public:
}
const char *getLinkedName() const {
return pcLinked->getObject()->getNameInDocument();
return pcLinked->getObject()->getDagKey();
}
const char *getLinkedLabel() const {