File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -910,17 +910,17 @@ OUString SdPageObjsTLV::GetObjectName(
910910 OUString sObjName ;
911911 if (pObject->GetObjIdentifier () == SdrObjKind::CustomShape)
912912 {
913- #ifndef NDEBUG
914- OUString aEngine (pObject->GetMergedItem (SDRATTR_CUSTOMSHAPE_ENGINE).GetValue ());
915- assert (aEngine.isEmpty () || aEngine == " com.sun.star.drawing.EnhancedCustomShapeEngine" );
916- #endif
917913 // taken from SdrObjCustomShape::GetCustomShapeName
918- OUString sShapeType ;
919- const SdrCustomShapeGeometryItem& rGeometryItem
920- = pObject->GetMergedItem (SDRATTR_CUSTOMSHAPE_GEOMETRY);
921- const uno::Any* pAny = rGeometryItem.GetPropertyValueByName (u" Type" _ustr);
922- if (pAny && (*pAny >>= sShapeType ))
923- sObjName = SdResId (STR_NAVIGATOR_CUSTOMSHAPE) + u" : " + sShapeType ;
914+ OUString aEngine (pObject->GetMergedItem (SDRATTR_CUSTOMSHAPE_ENGINE).GetValue ());
915+ if (aEngine.isEmpty () || aEngine == " com.sun.star.drawing.EnhancedCustomShapeEngine" )
916+ {
917+ OUString sShapeType ;
918+ const SdrCustomShapeGeometryItem& rGeometryItem
919+ = pObject->GetMergedItem (SDRATTR_CUSTOMSHAPE_GEOMETRY);
920+ const uno::Any* pAny = rGeometryItem.GetPropertyValueByName (u" Type" _ustr);
921+ if (pAny && (*pAny >>= sShapeType ))
922+ sObjName = SdResId (STR_NAVIGATOR_CUSTOMSHAPE) + u" : " + sShapeType ;
923+ }
924924 }
925925 else
926926 sObjName = pObject->TakeObjNameSingul ();
You can’t perform that action at this time.
0 commit comments