summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/menu.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 2bd976881439..88e2b9ec92f5 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -6004,15 +6004,16 @@ void MenuBarWindow::ImplInitStyleSettings()
if( IsNativeControlSupported( CTRL_MENUBAR, PART_MENU_ITEM ) &&
IsNativeControlSupported( CTRL_MENUBAR, PART_ENTIRE_CONTROL ) )
{
+ AllSettings aSettings( GetSettings() );
+ ImplGetFrame()->UpdateSettings( aSettings ); // to update persona
+ StyleSettings aStyle( aSettings.GetStyleSettings() );
Color aHighlightTextColor = ImplGetSVData()->maNWFData.maMenuBarHighlightTextColor;
if( aHighlightTextColor != Color( COL_TRANSPARENT ) )
{
- AllSettings aSettings( GetSettings() );
- StyleSettings aStyle( aSettings.GetStyleSettings() );
aStyle.SetMenuHighlightTextColor( aHighlightTextColor );
- aSettings.SetStyleSettings( aStyle );
- OutputDevice::SetSettings( aSettings );
}
+ aSettings.SetStyleSettings( aStyle );
+ OutputDevice::SetSettings( aSettings );
}
}