[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdegraphics/ksnapshot
From: Helio Chissini de Castro <helio () conectiva ! com ! br>
Date: 2006-06-30 9:21:49
Message-ID: 1151659309.395525.3230.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 556441 by helio:
- Fix increase number of next snapshots. Patch by Laurent Montel
M +3 -1 ksnapshot.cpp
--- branches/KDE/3.5/kdegraphics/ksnapshot/ksnapshot.cpp #556440:556441
@@ -398,7 +398,9 @@
// It has a number, increment it
int len = numSearch.matchedLength();
QString numAsStr= name.mid(start, len);
- name.replace(start, len, QString::number(numAsStr.toInt() + 1));
+ QString number = QString::number(numAsStr.toInt() + 1);
+ number = number.rightJustify( len, '0');
+ name.replace(start, len, number );
}
else {
// no number
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic