diff options
author | Eike Rathke <erack@redhat.com> | 2013-09-10 21:03:04 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-09-10 23:04:37 +0200 |
commit | 0517ec8f6bc2da8cac819aab714da30531feeabc (patch) | |
tree | 66316d74f9aa4925fb62ba04b2481a4b1ec215a2 /i18npool/source/localedata/LocaleNode.cxx | |
parent | e4c204bdbf5d67be2242301ae380789097cfc7f6 (diff) |
corrected check of Variant '-'
Change-Id: Ic134fe541e21c905590294ffb1ed4fed34aabd63
Diffstat (limited to 'i18npool/source/localedata/LocaleNode.cxx')
-rw-r--r-- | i18npool/source/localedata/LocaleNode.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx index 1c654b073329..b89a9ab53851 100644 --- a/i18npool/source/localedata/LocaleNode.cxx +++ b/i18npool/source/localedata/LocaleNode.cxx @@ -366,7 +366,7 @@ void LCInfoNode::generateCode (const OFileWriter &of) const { // If given Variant must be at least ll-Ssss and language must be 'qlt' OUString aVariant( variantNode->getValue()); - if (!(aVariant.isEmpty() || (aVariant.getLength() >= 7 && aVariant.indexOf('-')))) + if (!(aVariant.isEmpty() || (aVariant.getLength() >= 7 && aVariant.indexOf('-') >= 2))) incErrorStr( "invalid Variant", aVariant); if (!(aVariant.isEmpty() || aLanguage == "qlt")) incErrorStrStr( "Variant '%s' given but Language '%s' is not 'qlt'", aVariant, aLanguage); |