[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/plugins/pathshapes/enhancedpath
From: Thomas Zander <zander () kde ! org>
Date: 2010-02-13 11:11:48
Message-ID: 1266059508.087585.18119.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1089473 by zander:
Fix regression in loading pathshapes found by Thorsten.
M +4 -2 EnhancedPathShape.cpp
--- trunk/koffice/plugins/pathshapes/enhancedpath/EnhancedPathShape.cpp #1089472:1089473
@@ -422,21 +422,23 @@
return;
int start = -1;
+ bool separator = true;
for (int i = 0; i < data.length(); ++i) {
QChar ch = data.at(i);
- if (ch.unicode() == 'M' || ch.unicode() == 'L'
+ 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') {
+ || ch.unicode() == 'Y' || ch.unicode() == 'Q')) {
if (start != -1) { // process last chars
addCommand(data.mid(start, i - start));
}
start = i;
}
+ separator = ch.isSpace();
}
if (start < data.length())
addCommand(data.mid(start));
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic