diff options
-rw-r--r-- | vcl/source/window/accel.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/accel.cxx b/vcl/source/window/accel.cxx index e755d486eefb..50afd2b0f1aa 100644 --- a/vcl/source/window/accel.cxx +++ b/vcl/source/window/accel.cxx @@ -271,7 +271,7 @@ void Accelerator::ImplInsertAccel( sal_uInt16 nItemId, const KeyCode& rKeyCode, OSL_FAIL( "Accelerator::InsertItem(): KeyCode with KeyCode 0 not allowed" ); delete pEntry; } - else if ( mpData->maKeyMap.insert( std::make_pair( nCode, pEntry ) ).second ) + else if ( !mpData->maKeyMap.insert( std::make_pair( nCode, pEntry ) ).second ) { OSL_TRACE( "Accelerator::InsertItem(): KeyCode (Key: %lx) already exists", nCode ); delete pEntry; |