summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-11-11 22:11:58 +0100
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-11-12 14:25:11 +0100
commit8a232f007458c9f474c6bf8fdf1f7f2c5ae467cf (patch)
tree7b04074a3900fab7aedd6b9a2395604bb3e77007
parent74b6759ee81c95ae75046dd411d2bd0bd2324a8b (diff)
RTF import: Fixed unicode characters import, fdo#42109
Actually implemented the \uc to skip the ANSI representation after the unicode value.
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index 9cc025c7085b..7ba5249cdf34 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -2221,6 +2221,10 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
}
}
break;
+ case RTF_UC:
+ if ((SAL_MIN_INT16 <= nParam) && (nParam <= SAL_MAX_INT16))
+ m_aStates.top().nUc = nParam;
+ break;
case RTF_U:
if ((SAL_MIN_INT16 <= nParam) && (nParam <= SAL_MAX_INT16))
{