diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-05-25 11:08:13 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-05-25 11:47:15 +0200 |
commit | 4163bde70568d6d5dd7144293484f797e8df9e63 (patch) | |
tree | 1a4527d2f773f10ffcbeb78d49f2815fce276d89 /cui | |
parent | 677484ce014df4b76dbd24526ea5c74f6bd044d5 (diff) |
related tdf#90127: Simplify setting of the 'auto' icon theme.
Change-Id: I9aedfd0b7943517b5444195b63140132dd728d57
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optgdlg.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index 893ab5338d86..b82189f610b0 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -789,10 +789,10 @@ bool OfaViewTabPage::FillItemSet( SfxItemSet* ) if( nStyleLB_InitialSelection != nStyleLB_NewSelection ) { // 0 means choose style automatically - if (nStyleLB_NewSelection == 0) { - aMiscOptions.SetIconThemeAutomatically(); - } - else { + if (nStyleLB_NewSelection == 0) + aMiscOptions.SetIconTheme("auto"); + else + { sal_uInt16 pos = m_pIconStyleLB->GetSelectEntryPos(); const vcl::IconThemeInfo& iconThemeId = mInstalledIconThemes.at(pos-1); aMiscOptions.SetIconTheme(iconThemeId.GetThemeId()); |