diff options
Diffstat (limited to 'chart2/source/controller/main/ElementSelector.cxx')
-rw-r--r-- | chart2/source/controller/main/ElementSelector.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/source/controller/main/ElementSelector.cxx b/chart2/source/controller/main/ElementSelector.cxx index 55d3904dc8a8..fba6fb468a18 100644 --- a/chart2/source/controller/main/ElementSelector.cxx +++ b/chart2/source/controller/main/ElementSelector.cxx @@ -203,9 +203,9 @@ void SelectorListBox::Select() } } -long SelectorListBox::Notify( NotifyEvent& rNEvt ) +bool SelectorListBox::Notify( NotifyEvent& rNEvt ) { - long nHandled = 0; + bool nHandled = false; if ( rNEvt.GetType() == EVENT_KEYINPUT ) { @@ -219,7 +219,7 @@ long SelectorListBox::Notify( NotifyEvent& rNEvt ) if ( KEY_TAB == nCode ) m_bReleaseFocus = false; else - nHandled = 1; + nHandled = true; Select(); break; } @@ -236,7 +236,7 @@ long SelectorListBox::Notify( NotifyEvent& rNEvt ) SelectEntryPos( GetSavedValue() ); } - return nHandled ? nHandled : ListBox::Notify( rNEvt ); + return nHandled || ListBox::Notify( rNEvt ); } Reference< ::com::sun::star::accessibility::XAccessible > SelectorListBox::CreateAccessible() |