diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-03-22 17:36:51 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-03-23 08:26:14 +0100 |
commit | a82cdccb0c276ec10c35beec46fa7fa25fc95cd5 (patch) | |
tree | 73ad8a19584e75b18229f5c1c410569f2f6c8aec /svtools/source/control/toolbarmenu.cxx | |
parent | c12fc293650a860d5e05c32000f904afaf0958b6 (diff) |
Typo: GetSelectItemId -> GetSelectedItemId
Change-Id: Ieebb50b73f1f341c924693f3966f8cd2b09a136b
Reviewed-on: https://gerrit.libreoffice.org/51750
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'svtools/source/control/toolbarmenu.cxx')
-rw-r--r-- | svtools/source/control/toolbarmenu.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/control/toolbarmenu.cxx b/svtools/source/control/toolbarmenu.cxx index 1685f115b621..dd94ed5fd8f3 100644 --- a/svtools/source/control/toolbarmenu.cxx +++ b/svtools/source/control/toolbarmenu.cxx @@ -366,7 +366,7 @@ void ToolbarMenu_Impl::notifyHighlightedEntry() // todo: if other controls than ValueSet are allowed, adapt this code ValueSet* pValueSet = dynamic_cast< ValueSet* >( pEntry->mpControl.get() ); if( pValueSet ) - nChildIndex = static_cast< sal_Int32 >( pValueSet->GetItemPos( pValueSet->GetSelectItemId() ) ); + nChildIndex = static_cast< sal_Int32 >( pValueSet->GetItemPos( pValueSet->GetSelectedItemId() ) ); if( (nChildIndex >= pEntry->getAccessibleChildCount()) || (nChildIndex < 0) ) return; @@ -925,7 +925,7 @@ static bool implCheckSubControlCursorMove( Control* pControl, bool bUp, int& nLa ValueSet* pValueSet = dynamic_cast< ValueSet* >( pControl ); if( pValueSet ) { - size_t nItemPos = pValueSet->GetItemPos( pValueSet->GetSelectItemId() ); + size_t nItemPos = pValueSet->GetItemPos( pValueSet->GetSelectedItemId() ); if( nItemPos != VALUESET_ITEM_NOTFOUND ) { const sal_uInt16 nColCount = pValueSet->GetColCount(); |