summaryrefslogtreecommitdiff
path: root/svtools/source/svrtf
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-09-13 08:35:35 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-09-13 08:35:35 +0200
commit8e0fb74dc01927b60d8b868548ef8fe1d7a80ce3 (patch)
tree85c2dace14a6fd8a4164194b0ac322411169d529 /svtools/source/svrtf
parent08e78607ec6bc820c52ab3df1a5d3738e049b90d (diff)
Revert "svtools: HTML import: don't put lone surrogates in OUString"
This reverts commit fc670f637d4271246691904fd649358ce2e7be59, which is no longer needed after 08e78607ec6bc820c52ab3df1a5d3738e049b90d "Make reading UTF-8 strict". The bug doc fdo67610-1.doc (aka <https://bugs.documentfoundation.org/attachment.cgi?id=83417>) now opens fine without hitting the assert in OUString::toUtf8.
Diffstat (limited to 'svtools/source/svrtf')
-rw-r--r--svtools/source/svrtf/svparser.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/svrtf/svparser.cxx b/svtools/source/svrtf/svparser.cxx
index cef258f04dd2..541aa5276c2d 100644
--- a/svtools/source/svrtf/svparser.cxx
+++ b/svtools/source/svrtf/svparser.cxx
@@ -423,8 +423,7 @@ sal_uInt32 SvParser<T>::GetNextChar()
while( 0 == nChars && !bErr );
}
- // Note: ImplConvertUtf8ToUnicode() may produce a surrogate!
- if (!rtl::isUnicodeCodePoint(c) || rtl::isHighSurrogate(c) || rtl::isLowSurrogate(c))
+ if ( ! rtl::isUnicodeCodePoint( c ) )
c = '?' ;
if( bErr )