map CTL_LANGUAGE<->RTF_ALANG the same as CTL_FONTSIZE<->RTF_AFS

This commit is contained in:
Caolán McNamara 2011-09-09 14:00:00 +01:00
parent 9dbc6c88b0
commit b2043b3585
2 changed files with 2 additions and 1 deletions

View file

@ -1975,7 +1975,7 @@ void RtfAttributeOutput::CharLanguage( const SvxLanguageItem& rLanguage )
m_aStyles.append((sal_Int32)rLanguage.GetLanguage());
break;
case RES_CHRATR_CTL_LANGUAGE:
m_aStyles.append(OOO_STRING_SVTOOLS_RTF_LANG);
m_aStyles.append(OOO_STRING_SVTOOLS_RTF_ALANG);
m_aStyles.append((sal_Int32)rLanguage.GetLanguage());
break;
}

View file

@ -1921,6 +1921,7 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
case RTF_CHARSCALEX: nSprm = NS_sprm::LN_CCharScale; break;
case RTF_LANG: nSprm = NS_sprm::LN_CRgLid0; break;
case RTF_LANGFE: nSprm = NS_sprm::LN_CRgLid1; break;
case RTF_ALANG: nSprm = NS_sprm::LN_CLidBi; break;
default: break;
}
if (nSprm > 0)