cui/source/tabpages/numpages.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
New commits: commit a9642a2549bf429eb70aed724fbd98a147c22a42 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Fri Jan 25 12:11:04 2019 +0100 Commit: Xisco FaulĂ <xiscofa...@libreoffice.org> CommitDate: Mon Jan 28 14:10:20 2019 +0100 tdf#122951: Fix insertion of graphics as bullets Regression from 81260c448911069ce8cb051d3a973ec52b9b43a3 Change-Id: Iecf00ea8310a767ff7945e7c1a0efe9dca5edd20 Reviewed-on: https://gerrit.libreoffice.org/66906 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ <xiscofa...@libreoffice.org> diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx index 3c31e11d4a4b..8ff1e9384512 100644 --- a/cui/source/tabpages/numpages.cxx +++ b/cui/source/tabpages/numpages.cxx @@ -1998,12 +1998,14 @@ IMPL_LINK_NOARG(SvxNumOptionsTabPage, PopupActivateHdl_Impl, MenuButton *, void) GalleryExplorer::BeginLocking(GALLERY_THEME_BULLETS); Graphic aGraphic; + OUString sGrfName; size_t i = 0; for (auto & grfName : aGrfNames) { - INetURLObject aObj(grfName); + sGrfName = grfName; + INetURLObject aObj(sGrfName); if(aObj.GetProtocol() == INetProtocol::File) - grfName = aObj.PathToFileName(); + sGrfName = aObj.PathToFileName(); if(GalleryExplorer::GetGraphicObj( GALLERY_THEME_BULLETS, i, &aGraphic)) { @@ -2020,13 +2022,13 @@ IMPL_LINK_NOARG(SvxNumOptionsTabPage, PopupActivateHdl_Impl, MenuButton *, void) } Image aImage(aBitmap); - pPopup->InsertItem(MN_GALLERY_ENTRY + i, grfName, aImage ); + pPopup->InsertItem(MN_GALLERY_ENTRY + i, sGrfName, aImage ); } else { Image aImage; pPopup->InsertItem( - MN_GALLERY_ENTRY + i, grfName, aImage ); + MN_GALLERY_ENTRY + i, sGrfName, aImage ); } ++i; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits