From 7e49f670a60d9a22e56a33073125283876397a87 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Tue, 23 Mar 2010 21:59:51 +0100 Subject: Fixed marks.GetNext() --- marks.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/marks.cpp b/marks.cpp index 3d4b81a..5c4d8f3 100644 --- a/marks.cpp +++ b/marks.cpp @@ -127,11 +127,10 @@ clMark *clMarks::GetPrev(int Position) clMark *clMarks::GetNext(int Position) { if (!first) return NULL; // no elements yet - clMark *mark=first; while (mark) { - if (Position>=mark->position) break; + if (mark->position>=Position) break; mark=mark->Next(); } return mark->Next(); -- cgit v1.2.3