diff options
author | Christian Lippka <christian.lippka@sun.com> | 2010-04-19 17:46:40 +0200 |
---|---|---|
committer | Christian Lippka <christian.lippka@sun.com> | 2010-04-19 17:46:40 +0200 |
commit | 61604da6e03327792dded05f18afd8cae35cf8c1 (patch) | |
tree | 8b291120b3a128e3355d97a03607efd1021c6c3f /svtools/source/control/toolbarmenu.cxx | |
parent | 016ff852cc98d82069c29d6c70327a77955013e5 (diff) |
do not show icons in menu if this is disabled
Diffstat (limited to 'svtools/source/control/toolbarmenu.cxx')
-rw-r--r-- | svtools/source/control/toolbarmenu.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svtools/source/control/toolbarmenu.cxx b/svtools/source/control/toolbarmenu.cxx index bb332c77cc49..6a6edcc41f57 100644 --- a/svtools/source/control/toolbarmenu.cxx +++ b/svtools/source/control/toolbarmenu.cxx @@ -1381,6 +1381,7 @@ void ToolbarMenu::implPaint( ToolbarMenuEntry* pThisOnly, bool bHighlighted ) DecorationView aDecoView( this ); const StyleSettings& rSettings = GetSettings().GetStyleSettings(); + const bool bUseImages = rSettings.GetUseImagesInMenus(); int nOuterSpace = 0; // ImplGetSVData()->maNWFData.mnMenuFormatExtraBorder; Point aTopLeft( nOuterSpace, nOuterSpace ), aTmpPos; @@ -1513,7 +1514,7 @@ void ToolbarMenu::implPaint( ToolbarMenuEntry* pThisOnly, bool bHighlighted ) } // Image: - if( pEntry->mbHasImage ) + if( pEntry->mbHasImage && bUseImages ) { // Don't render an image for a check thing /* if((nMenuFlags & MENU_FLAG_SHOWCHECKIMAGES) || !pEntry->HasCheck() )*/ |