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

RTFDocumentImpl::resolveChars: don't send empty text tokens to dmapper

This speeds up importing unicode text a lot. Results of a sample of
chinese text of 5 pages:

- before: 18.351s
- after: 6.692s
üst 53170743
...@@ -735,7 +735,7 @@ int RTFDocumentImpl::resolveChars(char ch) ...@@ -735,7 +735,7 @@ int RTFDocumentImpl::resolveChars(char ch)
// set components back to zero // set components back to zero
m_aStates.top().aCurrentColor = RTFColorTableEntry(); m_aStates.top().aCurrentColor = RTFColorTableEntry();
} }
else else if (!aOUStr.isEmpty())
text(aOUStr); text(aOUStr);
return 0; return 0;
......
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