summaryrefslogtreecommitdiff
path: root/framework/source/uielement/spinfieldtoolbarcontroller.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/uielement/spinfieldtoolbarcontroller.cxx')
-rw-r--r--framework/source/uielement/spinfieldtoolbarcontroller.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/uielement/spinfieldtoolbarcontroller.cxx b/framework/source/uielement/spinfieldtoolbarcontroller.cxx
index dca6e186b78d..cc15f3fe19bb 100644
--- a/framework/source/uielement/spinfieldtoolbarcontroller.cxx
+++ b/framework/source/uielement/spinfieldtoolbarcontroller.cxx
@@ -328,7 +328,7 @@ long SpinfieldToolbarController::PreNotify( NotifyEvent& rNEvt )
if(( rKeyCode.GetModifier() | rKeyCode.GetCode()) == KEY_RETURN )
{
// Call execute only with non-empty text
- if ( m_pSpinfieldControl->GetText().Len() > 0 )
+ if ( !m_pSpinfieldControl->GetText().isEmpty() )
execute( rKeyCode.GetModifier() );
return 1;
}