[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdesdk/kompare/libdiff2
From: Ramon Zarazua <killerfox512 () gmail ! com>
Date: 2009-08-27 0:22:58
Message-ID: 1251332578.864867.14213.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1016093 by rzarazua:
Correctly manage the iterator that iterates through hunks.
M +2 -2 komparemodellist.cpp
--- trunk/KDE/kdesdk/kompare/libdiff2/komparemodellist.cpp #1016092:1016093
@@ -994,7 +994,7 @@
{
newHunk = new DiffHunk( srcLineNo, destLineNo, "", DiffHunk::AddedByBlend );
- hunks->insert( hunkIt, newHunk );
+ hunkIt = ++hunks->insert( hunkIt, newHunk );
newDiff = new Difference( srcLineNo, destLineNo,
Difference::Unchanged );
@@ -1020,7 +1020,7 @@
}
srcLineNo += size;
- destLineNo += (*hunkIt)->destinationLineCount();
+ destLineNo += hunk->destinationLineCount();
}
if ( linesIt != lEnd )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic