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

Maxim Monastirsky momonasmon at gmail.com
Thu Dec 10 07:30:46 PST 2015


 vcl/source/bitmap/CommandImageResolver.cxx |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

New commits:
commit f513a173152cb1c1afd7b700d1b264bc2ea6a5a8
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date:   Thu Dec 10 12:30:44 2015 +0200

    tdf#96357 Switching icon theme doesn't update toolbar or statusbar
    
    Regression of 6480b4d11a0cf2dd489d30b6290aa6d831704a45
    
    Change-Id: I00141b3d9c5ea8dc813530a2ee095d61a35b3c04
    Reviewed-on: https://gerrit.libreoffice.org/20591
    Reviewed-by: Maxim Monastirsky <momonasmon at gmail.com>
    Tested-by: Maxim Monastirsky <momonasmon at gmail.com>

diff --git a/vcl/source/bitmap/CommandImageResolver.cxx b/vcl/source/bitmap/CommandImageResolver.cxx
index 5c636d7..94bff8a 100644
--- a/vcl/source/bitmap/CommandImageResolver.cxx
+++ b/vcl/source/bitmap/CommandImageResolver.cxx
@@ -8,11 +8,10 @@
  */
 
 #include <vcl/CommandImageResolver.hxx>
-
+#include <vcl/settings.hxx>
+#include <vcl/svapp.hxx>
 #include <rtl/ustrbuf.hxx>
 #include <tools/urlobj.hxx>
-#include <svtools/miscopt.hxx>
-#include <officecfg/Office/Common.hxx>
 
 using css::uno::Sequence;
 
@@ -124,11 +123,11 @@ bool CommandImageResolver::hasImage(const OUString& rCommandURL)
 
 ImageList* CommandImageResolver::getImageList(sal_Int16 nImageType)
 {
-    const OUString& rIconTheme = officecfg::Office::Common::Misc::SymbolStyle::get();
+    const OUString sIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme();
 
-    if (rIconTheme != m_sIconTheme)
+    if (sIconTheme != m_sIconTheme)
     {
-        m_sIconTheme = rIconTheme;
+        m_sIconTheme = sIconTheme;
         for (sal_Int32 n = 0; n < ImageType_COUNT; ++n)
         {
             delete m_pImageList[n];


More information about the Libreoffice-commits mailing list