diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-08 20:57:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-08 20:57:27 +0000 |
commit | e6242ef5bf398cb598b5eeac1141576e87b0baf3 (patch) | |
tree | 32efa13415192a6a36267746444909c169ba5992 /sw | |
parent | 12e0102f39ee3a0398a4369bbc4af4ea0f51ca14 (diff) |
coverity#1169809 regression on long->bool
regression since 04683f14883f4cd64febadd71b327639f1e7edcc
apparently
Change-Id: I35b154dafd9534fb8234a82683cb3e879e136834
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/ribbar/workctrl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/ribbar/workctrl.cxx b/sw/source/ui/ribbar/workctrl.cxx index 2833fef429cb..0b449afc1380 100644 --- a/sw/source/ui/ribbar/workctrl.cxx +++ b/sw/source/ui/ribbar/workctrl.cxx @@ -684,7 +684,7 @@ void SwZoomBox_Impl::Select() bool SwZoomBox_Impl::Notify( NotifyEvent& rNEvt ) { - bool nHandled = true; + bool bHandled = false; if ( rNEvt.GetType() == EVENT_KEYINPUT ) { @@ -698,7 +698,7 @@ bool SwZoomBox_Impl::Notify( NotifyEvent& rNEvt ) if ( KEY_TAB == nCode ) bRelease = false; else - nHandled = true; + bHandled = true; Select(); break; } @@ -716,7 +716,7 @@ bool SwZoomBox_Impl::Notify( NotifyEvent& rNEvt ) SetText( GetSavedValue() ); } - return nHandled || ComboBox::Notify( rNEvt ); + return bHandled || ComboBox::Notify( rNEvt ); } void SwZoomBox_Impl::ReleaseFocus() |