[Libreoffice-commits] core.git: sc/source
Caolán McNamara
caolanm at redhat.com
Mon Dec 1 06:25:40 PST 2014
sc/source/ui/cctrl/checklistmenu.cxx | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
New commits:
commit b2c4a00095e3baa028dec059f34be04cac6463bb
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Dec 1 14:25:05 2014 +0000
WaE: -Werror=switch
Change-Id: Id98fd0522403ebc5e175c3fdb2a6ce9e8f6ca4d7
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index cbf834e..c3ad4d8 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -1169,20 +1169,16 @@ void ScCheckListMenuWindow::MouseMove(const MouseEvent& rMEvt)
bool ScCheckListMenuWindow::Notify(NotifyEvent& rNEvt)
{
- switch (rNEvt.GetType())
+ if (rNEvt.GetType() == MouseNotifyEvent::KEYUP)
{
- case MouseNotifyEvent::KEYUP:
+ const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
+ const vcl::KeyCode& rCode = pKeyEvent->GetKeyCode();
+ bool bShift = rCode.IsShift();
+ if (rCode.GetCode() == KEY_TAB)
{
- const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
- const vcl::KeyCode& rCode = pKeyEvent->GetKeyCode();
- bool bShift = rCode.IsShift();
- if (rCode.GetCode() == KEY_TAB)
- {
- cycleFocus(bShift);
- return true;
- }
+ cycleFocus(bShift);
+ return true;
}
- break;
}
return ScMenuFloatingWindow::Notify(rNEvt);
}
More information about the Libreoffice-commits
mailing list