diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx index e5c793e92ddb..3742e5c5999a 100644 --- a/svtools/source/dialogs/addresstemplate.cxx +++ b/svtools/source/dialogs/addresstemplate.cxx @@ -1227,7 +1227,7 @@ void AssignmentPersistentData::Commit() bool AddressBookSourceDialog::PreNotify( NotifyEvent& _rNEvt ) { - switch (_rNEvt.GetType() == MouseNotifyEvent::KEYINPUT) + if (_rNEvt.GetType() == MouseNotifyEvent::KEYINPUT) { const KeyEvent* pKeyEvent = _rNEvt.GetKeyEvent(); sal_uInt16 nCode = pKeyEvent->GetKeyCode().GetCode();