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 500f3b6086
commit e6b5fd0a21
4 changed files with 14 additions and 3 deletions

View File

@@ -468,7 +468,7 @@ void LinkBaseExtension::setOnChangeCopyObject(
}
}
const char *key = flags.testFlag(OnChangeCopyOptions::ApplyAll) ? "*" : parent->getNameInDocument();
const char *key = flags.testFlag(OnChangeCopyOptions::ApplyAll) ? "*" : parent->getDagKey();
if (external)
prop->setValue(key, exclude ? "" : "+");
else