Kaydet (Commit) 6f509451 authored tarafından Eike Rathke's avatar Eike Rathke

conditional SAL_WARN

An attempt to import a language from fo:language is fine even if
*:rfc-language-tag was already imported, just ignore this case instead
of warning, warn only if Language!="qlt".

Change-Id: I0f7ebc6964fe079c9f86ca19e98cfa56ec56398a
üst eb35c23d
......@@ -86,7 +86,10 @@ sal_Bool XMLCharLanguageHdl::importXML( const OUString& rStrImpValue, uno::Any&
else
{
if (!aLocale.Language.isEmpty() || aLocale.Variant[0] != '-')
SAL_WARN( "xmloff.style", "XMLCharLanguageHdl::importXML - attempt to import language twice");
{
SAL_WARN_IF( aLocale.Language != I18NLANGTAG_QLT, "xmloff.style",
"XMLCharLanguageHdl::importXML - attempt to import language twice");
}
else
{
aLocale.Variant = rStrImpValue + aLocale.Variant;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment