diff --git a/src/App/ObjectIdentifier.cpp b/src/App/ObjectIdentifier.cpp index 67534bf53..f2ed2e009 100644 --- a/src/App/ObjectIdentifier.cpp +++ b/src/App/ObjectIdentifier.cpp @@ -574,7 +574,7 @@ void ObjectIdentifier::resolve() const else { /* Document object name not specified, resolve from path */ if (components.size() == 1) { - documentObjectName = String(freecad_dynamic_cast(owner)->getNameInDocument()); + documentObjectName = String(static_cast(owner)->getNameInDocument()); propertyName = components[0].name.getString(); propertyIndex = 0; } @@ -590,7 +590,7 @@ void ObjectIdentifier::resolve() const propertyIndex = 1; } else { - documentObjectName = String(freecad_dynamic_cast(owner)->getNameInDocument()); + documentObjectName = String(static_cast(owner)->getNameInDocument()); propertyName = components[0].name.getString(); propertyIndex = 0; }