diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-05-13 12:07:35 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-05-13 12:07:35 +0000 |
commit | e068989f6f8411403063ae9adc1d70e931beeb5a (patch) | |
tree | d4e9f3649ddd218f4a50f0d202cf4b28ad791595 /sfx2 | |
parent | 739f8e20c3a7d86a2b1f6bf8d2b202eee26b9a72 (diff) |
INTEGRATION: CWS fwk86 (1.67.216); FILE MERGED
2008/04/30 15:47:44 pb 1.67.216.2: RESYNC: (1.67-1.68); FILE MERGED
2008/04/07 11:49:07 pb 1.67.216.1: fix: #i86924# reset item images if symbols style has changed
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/toolbox/tbxitem.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx index 2cb96c7eeda8..d848a0b9de32 100644 --- a/sfx2/source/toolbox/tbxitem.cxx +++ b/sfx2/source/toolbox/tbxitem.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: tbxitem.cxx,v $ - * $Revision: 1.68 $ + * $Revision: 1.69 $ * * This file is part of OpenOffice.org. * @@ -1485,6 +1485,7 @@ SfxAppToolBoxControl_Impl::SfxAppToolBoxControl_Impl( USHORT nSlotId, USHORT nId // Determine the current background color of the menus const StyleSettings& rSettings = Application::GetSettings().GetStyleSettings(); + m_nSymbolsStyle = rSettings.GetSymbolsStyle(); m_bWasHiContrastMode = rSettings.GetMenuColor().IsDark(); m_bShowMenuImages = SvtMenuOptions().IsMenuIconsEnabled(); @@ -1760,12 +1761,15 @@ IMPL_LINK( SfxAppToolBoxControl_Impl, Activate, Menu *, pActMenu ) if ( pActMenu ) { const StyleSettings& rSettings = Application::GetSettings().GetStyleSettings(); + ULONG nSymbolsStyle = rSettings.GetSymbolsStyle(); BOOL bIsHiContrastMode = rSettings.GetMenuColor().IsDark(); BOOL bShowMenuImages = SvtMenuOptions().IsMenuIconsEnabled(); - if (( bIsHiContrastMode != m_bWasHiContrastMode ) || - ( bShowMenuImages != m_bShowMenuImages ) ) + if (( nSymbolsStyle != m_nSymbolsStyle ) || + ( bIsHiContrastMode != m_bWasHiContrastMode ) || + ( bShowMenuImages != m_bShowMenuImages )) { + m_nSymbolsStyle = nSymbolsStyle; m_bWasHiContrastMode = bIsHiContrastMode; m_bShowMenuImages = bShowMenuImages; |