diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-05-14 21:16:30 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2023-05-18 12:40:03 +0200 |
commit | 0138745f0206f348644fd6d47c7316c8190d711b (patch) | |
tree | fa4a14a7a07695387e345efea506b9a502944c83 /forms/source | |
parent | 24ba2cdaedb616c091f51cdec7e77c9930c83162 (diff) |
tdf#155123: XML Form: Deleting parts of user defined data type impossible
2 parts:
1) in extensions/source/propctrlr/standardcontrol.cxx
if value retrieved from the field is 0, let's return an empty Any var.
2) forms/source/xforms/datatypes.cxx
Allow to select 0 in the spinbox for String and URI ("hyperlink") datatypes
to be homogeneous
Change-Id: Ife9a94c279e8651623112c0bf8a64555cb9c556c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151740
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'forms/source')
-rw-r--r-- | forms/source/xforms/datatypes.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/xforms/datatypes.cxx b/forms/source/xforms/datatypes.cxx index e81f40246425..c2612f65f0ca 100644 --- a/forms/source/xforms/datatypes.cxx +++ b/forms/source/xforms/datatypes.cxx @@ -514,7 +514,7 @@ namespace xforms { sal_Int32 nValue( 0 ); OSL_VERIFY( _rNewValue >>= nValue ); - if ( nValue <= 0 ) + if ( nValue < 0 ) _rErrorMessage = "Length limits must denote positive integer values."; // TODO/eforms: localize the error message } @@ -635,7 +635,7 @@ namespace xforms { sal_Int32 nValue( 0 ); OSL_VERIFY( _rNewValue >>= nValue ); - if ( nValue <= 0 ) + if ( nValue < 0 ) _rErrorMessage = "Length limits must denote positive integer values."; // TODO/eforms: localize the error message } |