summaryrefslogtreecommitdiff
path: root/framework/source/helper/actiontriggerhelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/helper/actiontriggerhelper.cxx')
-rw-r--r--framework/source/helper/actiontriggerhelper.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/source/helper/actiontriggerhelper.cxx b/framework/source/helper/actiontriggerhelper.cxx
index 15977c777f1e..dae7002d08ff 100644
--- a/framework/source/helper/actiontriggerhelper.cxx
+++ b/framework/source/helper/actiontriggerhelper.cxx
@@ -119,7 +119,7 @@ void InsertSubMenuItems( Menu* pSubMenu, USHORT& nItemId, Reference< XIndexConta
{
AddonsOptions aAddonOptions;
const StyleSettings& rSettings = Application::GetSettings().GetStyleSettings();
- sal_Bool bHiContrast = rSettings.GetMenuColor().IsDark();
+ sal_Bool bHiContrast = rSettings.GetHighContrastMode();
OUString aSlotURL( RTL_CONSTASCII_USTRINGPARAM( "slot:" ));
@@ -128,9 +128,7 @@ void InsertSubMenuItems( Menu* pSubMenu, USHORT& nItemId, Reference< XIndexConta
try
{
Reference< XPropertySet > xPropSet;
- Any a = xIndexAccess->getByIndex( i );
-
- if (( a >>= xPropSet ) && ( xPropSet.is() ))
+ if (( xIndexAccess->getByIndex( i ) >>= xPropSet ) && ( xPropSet.is() ))
{
if ( IsSeparator( xPropSet ))
{