From 43d5a03d02d4c1c9756d1080b7fee418e24717a3 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Sat, 29 Oct 2011 00:24:55 +0200 Subject: [PATCH] Related: fdo#39856 fix RTF import of some special accented chars in tables --- writerfilter/source/dmapper/DomainMapper.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx index 74f6963e3808..f7ede2a85c39 100644 --- a/writerfilter/source/dmapper/DomainMapper.cxx +++ b/writerfilter/source/dmapper/DomainMapper.cxx @@ -3384,7 +3384,8 @@ void DomainMapper::lcl_utext(const sal_uInt8 * data_, size_t len) { m_pImpl->getTableManager().utext(data_, len); - if(len == 1 && ((*data_) == 0x0d || (*data_) == 0x07)) + // RTF always uses text() instead of utext() for run break + if(len == 1 && ((*data_) == 0x0d || (*data_) == 0x07) && !IsRTFImport()) m_pImpl->finishParagraph(m_pImpl->GetTopContextOfType(CONTEXT_PARAGRAPH)); else {