diff options
author | Eike Rathke <erack@openoffice.org> | 2010-06-11 02:18:33 +0200 |
---|---|---|
committer | Eike Rathke <erack@openoffice.org> | 2010-06-11 02:18:33 +0200 |
commit | bc2c3e133189b533b696d7970171ecba1645c094 (patch) | |
tree | 266d50cf6ec051ec967eb2d3f3d1c932303ea389 /i18npool | |
parent | 93ea507dcc9db5dc0da4191997b7a80cd2249a01 (diff) |
locales33a: check ordering of time separators only if both are present
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/localedata/LocaleNode.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx index cc183336fbc5..7a520047637d 100644 --- a/i18npool/source/localedata/LocaleNode.cxx +++ b/i18npool/source/localedata/LocaleNode.cxx @@ -697,7 +697,7 @@ void LCFormatNode::generateCode (const OFileWriter &of) const incErrorInt( "ThousandSeparator not present in FormatCode formatindex=\"%d\".", formatindex); } - if (nDec <= nGrp) + if (nDec >= 0 && nGrp >= 0 && nDec <= nGrp) incErrorInt( "Ordering of ThousandSeparator and DecimalSeparator not correct in formatindex=\"%d\".", formatindex); } @@ -732,7 +732,7 @@ void LCFormatNode::generateCode (const OFileWriter &of) const incErrorInt( "Time100SecSeparator+00 not present in FormatCode formatindex=\"%d\".", formatindex); } - if (n100s <= nTime) + if (n100s >= 0 && nTime >= 0 && n100s <= nTime) incErrorInt( "Ordering of Time100SecSeparator and TimeSeparator not correct in formatindex=\"%d\".", formatindex); } |