summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorOnur Yilmaz <onuryilmaz0750@gmail.com>2020-02-04 16:27:38 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2020-02-08 10:24:50 +0100
commit5088e6d34b0ffba423f8633ee83673a9c1d40036 (patch)
tree35545c223292915e7cd948ed55141ee22217a8f1 /sd
parentf53b94315c2567d01c386632693e9431921b0248 (diff)
tdf#130148 Gallery drop-down list in Impress B&N dialog shows only start...
Change-Id: Ieb8d79d7b3d291ffb36a7daaee0716d4ed8c9a85 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87972 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/dlg/BulletAndPositionDlg.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/sd/source/ui/dlg/BulletAndPositionDlg.cxx b/sd/source/ui/dlg/BulletAndPositionDlg.cxx
index 7ce6a227fe3f..498ea1befcc5 100644
--- a/sd/source/ui/dlg/BulletAndPositionDlg.cxx
+++ b/sd/source/ui/dlg/BulletAndPositionDlg.cxx
@@ -897,12 +897,9 @@ IMPL_LINK_NOARG(SvxBulletAndPositionDlg, PopupActivateHdl_Impl, weld::ToggleButt
pVD->DrawBitmapEx(Point(), aBitmap);
// We want to show only icon names not full path.
- // That part finds the last index of the slash and
- // gets the part before .gif
-
- sal_Int32 last = sGrfName.lastIndexOf("/");
- last++;
- OUString sIconName = sGrfName.getToken(0, '.', last);
+ aObj.removeExtension();
+ OUString sIconName
+ = aObj.GetLastName(INetURLObject::DecodeMechanism::WithCharset);
m_xGalleryMenu->append(sItemId, sIconName, *pVD);
}