Kaydet (Commit) 00859026 authored tarafından Miklos Vajna's avatar Miklos Vajna

fdo#46662 fix RTF import of numbering levelnumbers

To handle stateful encodings, we process hex characters in one go for a
run. Levelnumbers of numberings should be an exception, since there the
special characters (here: 0x7, which is table cell end) have no special
meaning.
üst 3f9f18c5
...@@ -760,7 +760,7 @@ int RTFDocumentImpl::resolveChars(char ch) ...@@ -760,7 +760,7 @@ int RTFDocumentImpl::resolveChars(char ch)
if (m_aStates.top().nInternalState != INTERNAL_HEX && !Strm().IsEof()) if (m_aStates.top().nInternalState != INTERNAL_HEX && !Strm().IsEof())
Strm().SeekRel(-1); Strm().SeekRel(-1);
if (m_aStates.top().nInternalState == INTERNAL_HEX) if (m_aStates.top().nInternalState == INTERNAL_HEX && m_aStates.top().nDestinationState != DESTINATION_LEVELNUMBERS)
{ {
if (!bSkipped) if (!bSkipped)
m_aHexBuffer.append(ch); m_aHexBuffer.append(ch);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment