[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/plugins/pathshapes/enhancedpath
From: Thorsten Zachmann <t.zachmann () zagge ! de>
Date: 2010-10-19 8:51:42
Message-ID: 20101019085142.D7E10AC897 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1187393 by zachmann:
o more speeding up of loading of enhanced path shapes.
- don't update the paths shape while it is loaded, only update once all
command are in
- call unicode only once per character
M +10 -9 EnhancedPathShape.cpp
--- trunk/koffice/plugins/pathshapes/enhancedpath/EnhancedPathShape.cpp #1187392:1187393
@@ -463,16 +463,17 @@
bool separator = true;
for (int i = 0; i < data.length(); ++i) {
QChar ch = data.at(i);
- if (separator && (ch.unicode() == 'M' || ch.unicode() == 'L'
- || ch.unicode() == 'C' || ch.unicode() == 'Z'
- || ch.unicode() == 'N' || ch.unicode() == 'F'
- || ch.unicode() == 'S' || ch.unicode() == 'T'
- || ch.unicode() == 'U' || ch.unicode() == 'A'
- || ch.unicode() == 'B' || ch.unicode() == 'W'
- || ch.unicode() == 'V' || ch.unicode() == 'X'
- || ch.unicode() == 'Y' || ch.unicode() == 'Q')) {
+ ushort uni_ch = ch.unicode();
+ if (separator && (uni_ch == 'M' || uni_ch == 'L'
+ || uni_ch == 'C' || uni_ch == 'Z'
+ || uni_ch == 'N' || uni_ch == 'F'
+ || uni_ch == 'S' || uni_ch == 'T'
+ || uni_ch == 'U' || uni_ch == 'A'
+ || uni_ch == 'B' || uni_ch == 'W'
+ || uni_ch == 'V' || uni_ch == 'X'
+ || uni_ch == 'Y' || uni_ch == 'Q')) {
if (start != -1) { // process last chars
- addCommand(data.mid(start, i - start));
+ addCommand(data.mid(start, i - start), false);
}
start = i;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic