summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2020-12-01 00:35:03 -0900
committerJim Raykowski <raykowj@gmail.com>2020-12-03 21:37:19 +0100
commitcbc43bef143f3109bdf3bf981317ae74b73cde5a (patch)
treed84073c255e17bac13cc43a049a80a204cddedde
parent70fd160ea0c2a2afeee520f450f1ed4f81fa88f3 (diff)
tdf#34828 sd navigator: enhance automatic shape name
appends defined singular object name to automatic shape name Change-Id: Ia49eef8e1448c5973c6bbf451c22de252f9939dd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106957 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
-rw-r--r--sd/source/ui/dlg/sdtreelb.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx
index 68ca6bdbff69..bd9215fcb5b1 100644
--- a/sd/source/ui/dlg/sdtreelb.cxx
+++ b/sd/source/ui/dlg/sdtreelb.cxx
@@ -758,7 +758,7 @@ OUString SdPageObjsTLV::GetObjectName(
&& aRet.isEmpty()
&& pObject!=nullptr)
{
- aRet = SdResId(STR_NAVIGATOR_SHAPE_BASE_NAME);
+ aRet = SdResId(STR_NAVIGATOR_SHAPE_BASE_NAME) + " (" + pObject->TakeObjNameSingul() +")";
aRet = aRet.replaceFirst("%1", OUString::number(pObject->GetOrdNum() + 1));
}