summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-09 14:00:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-09 14:00:49 +0100
commitb2043b3585729abd6b29ca8a7797a54223021415 (patch)
tree001a8430bb70d385684c615f9e54a7e5ec14cc6b
parent9dbc6c88b03af6488b99ce355f8ae34d9a542cc0 (diff)
map CTL_LANGUAGE<->RTF_ALANG the same as CTL_FONTSIZE<->RTF_AFS
-rw-r--r--sw/source/filter/ww8/rtfattributeoutput.cxx2
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx1
2 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx
index 83110b89d80d..1af6069de741 100644
--- a/sw/source/filter/ww8/rtfattributeoutput.cxx
+++ b/sw/source/filter/ww8/rtfattributeoutput.cxx
@@ -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;
}
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index 6862c5d7bcbc..1f222d5e07d6 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -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)