From 0517ec8f6bc2da8cac819aab714da30531feeabc Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 10 Sep 2013 21:03:04 +0200 Subject: corrected check of Variant '-' Change-Id: Ic134fe541e21c905590294ffb1ed4fed34aabd63 --- i18npool/source/localedata/LocaleNode.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'i18npool') 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); -- cgit