summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-04-14 21:05:06 +0200
committerJulien Nabet <serval2412@yahoo.fr>2023-04-14 22:58:09 +0200
commit4829a85d0753c93419bd46b1d50bcfa6f0f3f1da (patch)
tree2e4ff4e7c9dc3fc63158e48cc2e27f965ce3b876 /forms
parent5bb3a7af2040dc11e424cb4f5bce7a4ee30df38d (diff)
tdf#154734: XML Form doc: all binded fields will be shown as fields...
with wrong content - except fields, which have wrong content Regression of 14cfff500e93f0d6cbf8412065feea85c01ea81d (at 2021-08-05) Pass context and resource string down to boost::locale separately because this is often on a hot path, and we can avoid the splitting and joining of strings like this. Before the commit, it was: return ( _validate( sValue ) == nullptr ); _validate methods return "TranslateId" variable which contain the reason why validity is wrong so if this variable contains no reason it means everything is OK. so just replace: return bool(_validate( sValue )); by: return bool(!_validate( sValue )); Change-Id: I76373d0825f86f9072217c96757252b6a891ecc4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150433 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
Diffstat (limited to 'forms')
-rw-r--r--forms/source/xforms/datatypes.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/xforms/datatypes.cxx b/forms/source/xforms/datatypes.cxx
index 92e0c3ec781b..c372298f0e5f 100644
--- a/forms/source/xforms/datatypes.cxx
+++ b/forms/source/xforms/datatypes.cxx
@@ -156,7 +156,7 @@ namespace xforms
sal_Bool OXSDDataType::validate( const OUString& sValue )
{
- return bool(_validate( sValue ));
+ return bool(!_validate( sValue ));
}