Kaydet (Commit) f513a173 authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

tdf#96357 Switching icon theme doesn't update toolbar or statusbar

Regression of 6480b4d1

Change-Id: I00141b3d9c5ea8dc813530a2ee095d61a35b3c04
Reviewed-on: https://gerrit.libreoffice.org/20591Reviewed-by: 's avatarMaxim Monastirsky <momonasmon@gmail.com>
Tested-by: 's avatarMaxim Monastirsky <momonasmon@gmail.com>
üst 54e95789
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment