summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2010-11-23 21:18:44 +0100
committerPetr Mladek <pmladek@suse.cz>2010-11-23 21:18:44 +0100
commitf033400bfa325f822f72f2a932c6f38fece2a190 (patch)
treecd253524e1cde5b90235486f08317bf367130e9f /cui
parentf863ebc25ee2cae2c4a874c88c0b19e86030812a (diff)
show the really used default icon theme in options (bnc#603169)
check also the icon theme prefered by the native widget plugin backport from ooo-build-3-2-1
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optgdlg.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index aff379aa2f46..0a8860d42674 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -845,7 +845,11 @@ OfaViewTabPage::OfaViewTabPage(Window* pParent, const SfxItemSet& rSet ) :
aAutoStr += ::rtl::OUString::createFromAscii( " (" );
- ULONG nAutoStyle = aStyleSettings.GetAutoSymbolsStyle();
+ // prefer the icon style set by the desktop native widgets modules
+ ULONG nAutoStyle = aStyleSettings.GetPreferredSymbolsStyle();
+ // fallback to the statically defined values
+ if ( nAutoStyle == STYLE_SYMBOLS_AUTO || !aIconStyleItemId[nAutoStyle] )
+ nAutoStyle = aStyleSettings.GetAutoSymbolsStyle();
if ( aIconStyleItemId[nAutoStyle] )
aAutoStr += aIconStyleLB.GetEntry( aIconStyleItemId[nAutoStyle] );