diff options
-rw-r--r-- | framework/source/uielement/togglebuttontoolbarcontroller.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/source/uielement/togglebuttontoolbarcontroller.cxx b/framework/source/uielement/togglebuttontoolbarcontroller.cxx index f2aac682a93f..dde27445fa09 100644 --- a/framework/source/uielement/togglebuttontoolbarcontroller.cxx +++ b/framework/source/uielement/togglebuttontoolbarcontroller.cxx @@ -263,9 +263,7 @@ void ToggleButtonToolbarController::executeControlCommand( const ::com::sun::sta { if ( m_aDropdownMenuList[j] == aText ) { - std::vector< OUString >::iterator aIter = m_aDropdownMenuList.begin(); - aIter += j; - m_aDropdownMenuList.erase( aIter ); + m_aDropdownMenuList.erase(m_aDropdownMenuList.begin() + j); break; } } |