summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-12-10 12:30:44 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2015-12-10 15:30:20 +0000
commitf513a173152cb1c1afd7b700d1b264bc2ea6a5a8 (patch)
tree48366e7f5ae94b13328cc8e6219093190e44d566
parent54e95789adf05c6852db18b80a549b789a40d6d3 (diff)
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@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
-rw-r--r--vcl/source/bitmap/CommandImageResolver.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/vcl/source/bitmap/CommandImageResolver.cxx b/vcl/source/bitmap/CommandImageResolver.cxx
index 5c636d70c9bc..94bff8a93042 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];