From d0c37f811ddea274b5860941d52456d2678d0aaa Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Mon, 24 Mar 2008 02:29:58 +0000 Subject: update the bounds before updating the positions git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@295 f203690c-595d-4dc9-a70b-905162fa7fd2 --- src/java/com/healthmarketscience/jackcess/Index.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/java/com/healthmarketscience/jackcess/Index.java b/src/java/com/healthmarketscience/jackcess/Index.java index fe8fa23..020f42f 100644 --- a/src/java/com/healthmarketscience/jackcess/Index.java +++ b/src/java/com/healthmarketscience/jackcess/Index.java @@ -1677,7 +1677,6 @@ public class Index implements Comparable { _curPos = getDirHandler(moveForward).getBeginningPosition(); _prevPos = _curPos; if(!isUpToDate()) { - // update bounds updateBounds(); _lastModCount = Index.this._modCount; } @@ -1737,12 +1736,12 @@ public class Index implements Comparable { if(!curEntry.equals(_curPos.getEntry()) || !prevEntry.equals(_prevPos.getEntry())) { - _prevPos = updatePosition(prevEntry); - _curPos = updatePosition(curEntry); if(!isUpToDate()) { updateBounds(); _lastModCount = Index.this._modCount; } + _prevPos = updatePosition(prevEntry); + _curPos = updatePosition(curEntry); } else { checkForModification(); } @@ -1753,9 +1752,9 @@ public class Index implements Comparable { */ private void checkForModification() { if(!isUpToDate()) { + updateBounds(); _prevPos = updatePosition(_prevPos.getEntry()); _curPos = updatePosition(_curPos.getEntry()); - updateBounds(); _lastModCount = Index.this._modCount; } } -- cgit v1.2.3