[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/network/konversation/src
From: Eike Hein <hein () kde ! org>
Date: 2009-10-31 23:09:12
Message-ID: 1257030552.093889.2631.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1043173 by hein:
Fix a rather trivial mistake that unfortunately had the rather
grave consequence of jumbling outbound lines containing multi-
ple URLs.
M +1 -1 commit.h
M +3 -3 common.cpp
--- trunk/extragear/network/konversation/src/commit.h #1043172:1043173
@@ -1,4 +1,4 @@
// This COMMIT number is added to version string to be used as "patch level"
#ifndef COMMIT
-#define COMMIT 4003
+#define COMMIT 4004
#endif
--- trunk/extragear/network/konversation/src/common.cpp #1043172:1043173
@@ -84,7 +84,7 @@
QPair<int, int> pair;
int startPos = 0;
- int endPos = 0;
+ int length = 0;
QListIterator<QPair<int, int> > i(urlRanges);
@@ -92,9 +92,9 @@
{
pair = i.next();
- endPos = pair.first;
+ length = pair.first - startPos;
- line += replaceFormattingCodes(text.mid(startPos, endPos));
+ line += replaceFormattingCodes(text.mid(startPos, length));
startPos = pair.first + pair.second;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic