Kaydet (Commit) 7d0db7f0 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

This shall probably check nId != 0 && ..., not do a bitwise &

Change-Id: I2417f7bff3fc5f2bef6c804af12d1873802b0392
üst 5ea58f53
......@@ -226,7 +226,7 @@ void NewMenuController::setAccelerators( PopupMenu* pPopupMenu )
for ( sal_uInt32 i = 0; i < nItemCount; i++ )
{
sal_uInt16 nId( pPopupMenu->GetItemId( sal_uInt16( i )));
if ( nId & ( pPopupMenu->GetItemType( nId ) != MENUITEM_SEPARATOR ))
if ( nId && ( pPopupMenu->GetItemType( nId ) != MENUITEM_SEPARATOR ))
{
aIds.push_back( nId );
aMenuShortCuts.push_back( aEmptyKeyCode );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment