summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2018-11-06 18:43:03 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2018-11-06 19:14:23 +0100
commitfec8c14e960fbcd639a04d6c3354caff2d0bd365 (patch)
tree6438d76757d039c9ace70d7a88cc41ee95cea642 /forms
parentebc5d16a99c9e6f9d41b6c12f75fd950c1125b73 (diff)
tdf#121188 form controls should have InputRequired false by default
Unless the underlying column is not nullable and has no default value this is only a guess, form designer can change it Change-Id: Ifa403e00b21fdaf86aef383503d54879b25ac62b Reviewed-on: https://gerrit.libreoffice.org/62969 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/FormComponent.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx
index 7d4078a83fb5..1ab76f31f8ef 100644
--- a/forms/source/component/FormComponent.cxx
+++ b/forms/source/component/FormComponent.cxx
@@ -1137,7 +1137,7 @@ OBoundControlModel::OBoundControlModel(
,m_aResetHelper( *this, m_aMutex )
,m_aUpdateListeners(m_aMutex)
,m_aFormComponentListeners( m_aMutex )
- ,m_bInputRequired( true )
+ ,m_bInputRequired( false )
,m_pAggPropMultiplexer( nullptr )
,m_bFormListening( false )
,m_bLoaded(false)
@@ -1170,7 +1170,7 @@ OBoundControlModel::OBoundControlModel(
,m_aUpdateListeners( m_aMutex )
,m_aFormComponentListeners( m_aMutex )
,m_xValidator( _pOriginal->m_xValidator )
- ,m_bInputRequired( true )
+ ,m_bInputRequired( false )
,m_pAggPropMultiplexer( nullptr )
,m_bFormListening( false )
,m_bLoaded( false )
@@ -1676,7 +1676,7 @@ Any OBoundControlModel::getPropertyDefaultByHandle( sal_Int32 _nHandle ) const
switch ( _nHandle )
{
case PROPERTY_ID_INPUT_REQUIRED:
- aDefault <<= true;
+ aDefault <<= false;
break;
case PROPERTY_ID_CONTROLSOURCE:
aDefault <<= OUString();