diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-07-27 14:12:42 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-07-27 16:00:12 +0200 |
commit | d216c9fcbbbbd5b28912441567c2fa282b284a6a (patch) | |
tree | ed4ec307e7dcd302788b0cdcea8f7e78f7ced041 /starmath/source/unomodel.cxx | |
parent | 3a06fbc0418e04eab2bcfcc47ffc7d04faf6dac9 (diff) |
SmRtfExport: get current encoding from Writer instead of assuming the default
Change-Id: Ia8bdf83f36d986ca45ddad985aca827224c194f4
Diffstat (limited to 'starmath/source/unomodel.cxx')
-rw-r--r-- | starmath/source/unomodel.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index dadb8f3454f3..40fa0ebb8574 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -1123,9 +1123,9 @@ void SmModel::writeFormulaOoxml( ::sax_fastparser::FSHelperPtr m_pSerializer, oo static_cast< SmDocShell* >( GetObjectShell())->writeFormulaOoxml( m_pSerializer, version ); } -void SmModel::writeFormulaRtf(OStringBuffer& rBuffer) +void SmModel::writeFormulaRtf(OStringBuffer& rBuffer, rtl_TextEncoding nEncoding) { - static_cast<SmDocShell*>(GetObjectShell())->writeFormulaRtf(rBuffer); + static_cast<SmDocShell*>(GetObjectShell())->writeFormulaRtf(rBuffer, nEncoding); } void SmModel::readFormulaOoxml( oox::formulaimport::XmlStream& stream ) |