[Kst] branches/work/kst/portto4/kst/src/libkstmath
Peter Kümmel
syntheticpp at gmx.net
Sun Sep 19 12:01:13 CEST 2010
SVN commit 1177075 by kuemmel:
QString::operator+= makes some stupid things with ints.
BUG: 251414
M +3 -6 eventmonitorentry.cpp
--- branches/work/kst/portto4/kst/src/libkstmath/eventmonitorentry.cpp #1177074:1177075
@@ -238,19 +238,16 @@
} else if (!makeRange && idx == idxOld + 1) {
makeRange = true;
} else if (makeRange && idx != idxOld + 1) {
- rangeString = rangeString + " - ";
- rangeString += idxOld + ", " + idx;
+ rangeString = rangeString + QString(" - %1, %2").arg(idxOld).arg(idx);
makeRange = false;
} else if (idx != idxOld + 1) {
- rangeString = rangeString + ", ";
- rangeString += idx;
+ rangeString = rangeString + QString(", %1").arg(idx);
}
idxOld = idx;
}
if (makeRange) {
- rangeString = rangeString + ", ";
- rangeString += idx;
+ rangeString = rangeString + QString(", %1").arg(idx);
}
if (_description.isEmpty()) {
More information about the Kst
mailing list