[Libreoffice-commits] core.git: sd/source

Onur Yilmaz (via logerrit) logerrit at kemper.freedesktop.org
Sat Feb 8 09:25:24 UTC 2020


 sd/source/ui/dlg/BulletAndPositionDlg.cxx |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

New commits:
commit 5088e6d34b0ffba423f8633ee83673a9c1d40036
Author:     Onur Yilmaz <onuryilmaz0750 at gmail.com>
AuthorDate: Tue Feb 4 16:27:38 2020 +0300
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Sat Feb 8 10:24:50 2020 +0100

    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 at collabora.com>

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);
                 }


More information about the Libreoffice-commits mailing list