summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2018-11-06 18:43:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-11-09 17:15:47 +0100
commit17c87566e84ac433645f264a9bee4cb5ddbd23a5 (patch)
tree8f9317f43ac259fcca58f5224af4f487cacd6a3e /svx
parent86b30f05b41e751ca144796b61243e2ecaf56324 (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/62968 Tested-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Tamás Bunth <btomi96@gmail.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/form/formcontroller.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx
index f3a10ee3c0da..0ae665b4e4eb 100644
--- a/svx/source/form/formcontroller.cxx
+++ b/svx/source/form/formcontroller.cxx
@@ -301,7 +301,7 @@ namespace
bool lcl_isInputRequired( const Reference< XPropertySet >& _rxControlModel )
{
- bool bInputRequired = true;
+ bool bInputRequired = false;
OSL_VERIFY( _rxControlModel->getPropertyValue( FM_PROP_INPUT_REQUIRED ) >>= bInputRequired );
return bInputRequired;
}