[Libreoffice-commits] .: writerfilter/source
Miklos Vajna
vmiklos at kemper.freedesktop.org
Sun Nov 27 16:01:03 PST 2011
writerfilter/source/rtftok/rtfdocumentimpl.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 75112a0544b6bf06aef53d2ab2653f713402e70c
Author: Miklos Vajna <vmiklos at frugalware.org>
Date: Mon Nov 28 00:59:57 2011 +0100
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
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index bd1636d..9e1be73 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -735,7 +735,7 @@ int RTFDocumentImpl::resolveChars(char ch)
// set components back to zero
m_aStates.top().aCurrentColor = RTFColorTableEntry();
}
- else
+ else if (!aOUStr.isEmpty())
text(aOUStr);
return 0;
More information about the Libreoffice-commits
mailing list