sd/source/ui/dlg/BulletAndPositionDlg.cxx |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

New commits:
commit 7c973ea77438273deda909ce0563d8c5c37dad00
Author:     Gülşah Köse <gulsah.k...@collabora.com>
AuthorDate: Tue Jul 30 23:26:27 2019 +0300
Commit:     Gülşah Köse <gulsah.k...@collabora.com>
CommitDate: Wed Jul 31 10:54:46 2019 +0200

    tdf#126511 Show only icon names instead of full path.
    
    This commit shows only icon names insead of the full
    path of icon on Bullet and Numbering dialog  graphic case
    on Impress.
    
    Change-Id: Iba72bf7c413993bad88add669035765aae521a59
    Reviewed-on: https://gerrit.libreoffice.org/76716
    Tested-by: Jenkins
    Reviewed-by: Gülşah Köse <gulsah.k...@collabora.com>

diff --git a/sd/source/ui/dlg/BulletAndPositionDlg.cxx 
b/sd/source/ui/dlg/BulletAndPositionDlg.cxx
index ae5655b32c55..23e5b5de2d36 100644
--- a/sd/source/ui/dlg/BulletAndPositionDlg.cxx
+++ b/sd/source/ui/dlg/BulletAndPositionDlg.cxx
@@ -935,7 +935,16 @@ IMPL_LINK_NOARG(SvxBulletAndPositionDlg, 
PopupActivateHdl_Impl, weld::ToggleButt
                     }
                     pVD->SetOutputSizePixel(aBitmap.GetSizePixel(), false);
                     pVD->DrawBitmapEx(Point(), aBitmap);
-                    m_xGalleryMenu->append(sItemId, sGrfName, *pVD);
+
+                    // 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);
+
+                    m_xGalleryMenu->append(sItemId, sIconName, *pVD);
                 }
                 else
                 {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to