Kaydet (Commit) bfb93ffc authored tarafından Urmas's avatar Urmas Kaydeden (comit) Miklos Vajna

fdo#64671 Some special RTF characters were not skipped correctly

Some special characters, like { and }, were not skipped when they
occured as a replacement character for \uN keyword.

Change-Id: I19b66a290cd9880924774fa89bb29df280e44a3c
üst 6e6b0281
...@@ -887,7 +887,7 @@ int RTFDocumentImpl::resolveChars(char ch) ...@@ -887,7 +887,7 @@ int RTFDocumentImpl::resolveChars(char ch)
bool bUnicodeChecked = false; bool bUnicodeChecked = false;
bool bSkipped = false; bool bSkipped = false;
while(!Strm().IsEof() && ch != '{' && ch != '}' && ch != '\\') while(!Strm().IsEof() && (m_aStates.top().nInternalState == INTERNAL_HEX || (ch != '{' && ch != '}' && ch != '\\')))
{ {
if (m_aStates.top().nInternalState == INTERNAL_HEX || (ch != 0x0d && ch != 0x0a)) if (m_aStates.top().nInternalState == INTERNAL_HEX || (ch != 0x0d && ch != 0x0a))
{ {
......
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