summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbaccess/source/ui/querydesign/LimitBox.cxx5
-rw-r--r--dbaccess/source/ui/querydesign/limitboxcontroller.cxx1
2 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/querydesign/LimitBox.cxx b/dbaccess/source/ui/querydesign/LimitBox.cxx
index 9556f814d8ed..b2d267e970d5 100644
--- a/dbaccess/source/ui/querydesign/LimitBox.cxx
+++ b/dbaccess/source/ui/querydesign/LimitBox.cxx
@@ -85,7 +85,7 @@ void LimitBox::ReformatAll()
{
RemoveEntry( 0 );
NumericBox::ReformatAll();
- InsertEntry( ALL_STRING, 0);
+ InsertValue( ALL_INT, 0);
}
else
{
@@ -101,8 +101,7 @@ Size LimitBox::GetOptimalSize() const
///Initialize entries
void LimitBox::LoadDefaultLimits()
{
- SetValue( ALL_INT );
- InsertEntry( ALL_STRING );
+ InsertValue( ALL_INT );
const unsigned nSize =
sizeof(global::aDefLimitAry)/sizeof(global::aDefLimitAry[0]);
diff --git a/dbaccess/source/ui/querydesign/limitboxcontroller.cxx b/dbaccess/source/ui/querydesign/limitboxcontroller.cxx
index 04451593383a..63724e5a4d31 100644
--- a/dbaccess/source/ui/querydesign/limitboxcontroller.cxx
+++ b/dbaccess/source/ui/querydesign/limitboxcontroller.cxx
@@ -57,6 +57,7 @@ long LimitBoxImpl::Notify( NotifyEvent& rNEvt )
{
case EVENT_LOSEFOCUS:
{
+ nHandled = LimitBox::Notify( rNEvt );
uno::Sequence< beans::PropertyValue > aArgs( 1 );
aArgs[0].Name = OUString( "DBLimit.Value" );
aArgs[0].Value = uno::makeAny( GetValue() );