diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-05-31 10:07:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-05-31 10:26:53 +0100 |
commit | c380f0fc125f50ad8efca2ce032d3d2a67d78f0a (patch) | |
tree | b47cefac32d847b8df9a47be6f8e2fbc606626ac /vcl/source/window/toolbox.cxx | |
parent | ba4e50c856e5279c05b90297660b396868a6d815 (diff) |
Related: tdf#92695 we already have ImplGetItem from mnHighItemId here
no logic change intended
Change-Id: Ia53a21db56c857e1274c60f846fc955fef9e3dfb
Diffstat (limited to 'vcl/source/window/toolbox.cxx')
-rw-r--r-- | vcl/source/window/toolbox.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index d725275e3fc9..8a89ff26257a 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -4986,20 +4986,19 @@ bool ToolBox::ImplActivateItem( vcl::KeyCode aKeyCode ) else { mnDownItemId = mnCurItemId = mnHighItemId; - ImplToolItem* pItem = ImplGetItem( mnHighItemId ); - if ( pItem->mnBits & ToolBoxItemBits::AUTOCHECK ) + if ( pToolItem->mnBits & ToolBoxItemBits::AUTOCHECK ) { - if ( pItem->mnBits & ToolBoxItemBits::RADIOCHECK ) + if ( pToolItem->mnBits & ToolBoxItemBits::RADIOCHECK ) { - if ( pItem->meState != TRISTATE_TRUE ) - SetItemState( pItem->mnId, TRISTATE_TRUE ); + if ( pToolItem->meState != TRISTATE_TRUE ) + SetItemState( pToolItem->mnId, TRISTATE_TRUE ); } else { - if ( pItem->meState != TRISTATE_TRUE ) - pItem->meState = TRISTATE_TRUE; + if ( pToolItem->meState != TRISTATE_TRUE ) + pToolItem->meState = TRISTATE_TRUE; else - pItem->meState = TRISTATE_FALSE; + pToolItem->meState = TRISTATE_FALSE; } } mnMouseModifier = aKeyCode.GetModifier(); |