[Libreoffice-commits] core.git: Branch 'libreoffice-6-2' - cui/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Jan 28 10:34:41 UTC 2019


 cui/source/tabpages/numpages.cxx |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

New commits:
commit c985db8b603d809d5896e42259e0768d607177f7
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Fri Jan 25 12:11:04 2019 +0100
Commit:     Xisco FaulĂ­ <xiscofauli at libreoffice.org>
CommitDate: Mon Jan 28 11:34:21 2019 +0100

    tdf#122951: Fix insertion of graphics as bullets
    
    Regression from 81260c448911069ce8cb051d3a973ec52b9b43a3
    
    Change-Id: Iecf00ea8310a767ff7945e7c1a0efe9dca5edd20
    Reviewed-on: https://gerrit.libreoffice.org/66903
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    (cherry picked from commit 265a4fd43d207cd6a99fdd9c23d54259428ed709)
    Reviewed-on: https://gerrit.libreoffice.org/66905
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    Reviewed-by: Xisco FaulĂ­ <xiscofauli at libreoffice.org>

diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx
index a6ea4899f3dd..7f4fa43b0494 100644
--- a/cui/source/tabpages/numpages.cxx
+++ b/cui/source/tabpages/numpages.cxx
@@ -1910,14 +1910,16 @@ IMPL_LINK_NOARG(SvxNumOptionsTabPage, PopupActivateHdl_Impl, weld::ToggleButton&
             GalleryExplorer::BeginLocking(GALLERY_THEME_BULLETS);
 
             Graphic aGraphic;
+            OUString sGrfName;
             ScopedVclPtrInstance< VirtualDevice > pVD;
             size_t i = 0;
             for (auto & grfName : aGrfNames)
             {
+                sGrfName = grfName;
                 OUString sItemId = "gallery" + OUString::number(i);
-                INetURLObject aObj(grfName);
+                INetURLObject aObj(sGrfName);
                 if(aObj.GetProtocol() == INetProtocol::File)
-                    grfName = aObj.PathToFileName();
+                    sGrfName = aObj.PathToFileName();
                 if(GalleryExplorer::GetGraphicObj( GALLERY_THEME_BULLETS, i, &aGraphic))
                 {
                     BitmapEx aBitmap(aGraphic.GetBitmapEx());
@@ -1933,11 +1935,11 @@ IMPL_LINK_NOARG(SvxNumOptionsTabPage, PopupActivateHdl_Impl, weld::ToggleButton&
                     }
                     pVD->SetOutputSizePixel(aBitmap.GetSizePixel(), false);
                     pVD->DrawBitmapEx(Point(), aBitmap);
-                    m_xGalleryMenu->append(sItemId, grfName, *pVD);
+                    m_xGalleryMenu->append(sItemId, sGrfName, *pVD);
                 }
                 else
                 {
-                    m_xGalleryMenu->append(sItemId, grfName);
+                    m_xGalleryMenu->append(sItemId, sGrfName);
                 }
                 ++i;
             }


More information about the Libreoffice-commits mailing list