From kde-commits Sat Oct 31 23:09:12 2009 From: Eike Hein Date: Sat, 31 Oct 2009 23:09:12 +0000 To: kde-commits Subject: extragear/network/konversation/src Message-Id: <1257030552.093889.2631.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125703056120313 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 pair; int startPos = 0; - int endPos = 0; + int length = 0; QListIterator > 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;