diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2008-03-24 02:29:58 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2008-03-24 02:29:58 +0000 |
commit | d0c37f811ddea274b5860941d52456d2678d0aaa (patch) | |
tree | 74c4d70b345d09ea7095d8992719f95d87784774 | |
parent | 173e68492a3e7ee7a7877413663d8b59d1fe030e (diff) | |
download | jackcess-d0c37f811ddea274b5860941d52456d2678d0aaa.tar.gz jackcess-d0c37f811ddea274b5860941d52456d2678d0aaa.zip |
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
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/Index.java | 7 |
1 files 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<Index> { _curPos = getDirHandler(moveForward).getBeginningPosition(); _prevPos = _curPos; if(!isUpToDate()) { - // update bounds updateBounds(); _lastModCount = Index.this._modCount; } @@ -1737,12 +1736,12 @@ public class Index implements Comparable<Index> { 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<Index> { */ private void checkForModification() { if(!isUpToDate()) { + updateBounds(); _prevPos = updatePosition(_prevPos.getEntry()); _curPos = updatePosition(_curPos.getEntry()); - updateBounds(); _lastModCount = Index.this._modCount; } } |