diff options
-rw-r--r-- | vcl/source/window/menu.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 04619eb545a2..3f695bda99dd 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -3563,7 +3563,7 @@ void PopupMenu::SelectEntry( sal_uInt16 nId ) { if( nId != ITEMPOS_INVALID ) { - size_t nPos; + size_t nPos = 0; MenuItemData* pData = GetItemList()->GetData( nId, nPos ); if ( pData->pSubMenu ) ImplGetFloatingWindow()->ChangeHighlightItem( nPos, sal_True ); |