summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/control
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-10-04 10:34:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-10-04 20:37:32 +0200
commita7411c2ee537355dc8051b7059e3a4d0bc708c04 (patch)
tree24b3f25f9365bd46a4ee64f230d725d844efeefd /dbaccess/source/ui/control
parenta6dfb3245f657f4b05559737f256b3d85e523037 (diff)
document 0 len case of set_max_length
Change-Id: I8300ff2d68f35da38e2314eefa7f2a2184981eab Reviewed-on: https://gerrit.libreoffice.org/80194 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess/source/ui/control')
-rw-r--r--dbaccess/source/ui/control/FieldDescControl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx
index b9e20c788516..222cfe3808f9 100644
--- a/dbaccess/source/ui/control/FieldDescControl.cxx
+++ b/dbaccess/source/ui/control/FieldDescControl.cxx
@@ -496,7 +496,7 @@ void OFieldDescControl::ActivateAggregate( EControlType eType )
return;
m_nPos++;
{
- sal_Int32 nMax = EDIT_NOLIMIT;
+ sal_Int32 nMax(0);
OUString aTmpString;
try
{
@@ -516,7 +516,7 @@ void OFieldDescControl::ActivateAggregate( EControlType eType )
m_xColumnName = std::make_unique<OPropColumnEditCtrl>(
m_xBuilder->weld_entry("ColumnName"), aTmpString,
STR_HELP_DEFAULT_VALUE, FIELD_PROPERTY_COLUMNNAME);
- m_xColumnName->set_max_length(nMax ? nMax : EDIT_NOLIMIT);
+ m_xColumnName->set_max_length(nMax);
m_xColumnName->setCheck( isSQL92CheckEnabled(getConnection()) );
}