summaryrefslogtreecommitdiff
path: root/chart2/source/controller
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller')
-rw-r--r--chart2/source/controller/main/ElementSelector.cxx8
-rw-r--r--chart2/source/controller/main/ElementSelector.hxx2
2 files changed, 5 insertions, 5 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()
diff --git a/chart2/source/controller/main/ElementSelector.hxx b/chart2/source/controller/main/ElementSelector.hxx
index bcf5e82dc5bf..4971cbb9c39f 100644
--- a/chart2/source/controller/main/ElementSelector.hxx
+++ b/chart2/source/controller/main/ElementSelector.hxx
@@ -51,7 +51,7 @@ class SelectorListBox : public ListBox
virtual ~SelectorListBox();
virtual void Select();
- virtual long Notify( NotifyEvent& rNEvt );
+ virtual bool Notify( NotifyEvent& rNEvt );
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible();
void ReleaseFocus_Impl();