_curPos = getDirHandler(moveForward).getBeginningPosition();
_prevPos = _curPos;
if(!isUpToDate()) {
- // update bounds
updateBounds();
_lastModCount = Index.this._modCount;
}
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();
}
*/
private void checkForModification() {
if(!isUpToDate()) {
+ updateBounds();
_prevPos = updatePosition(_prevPos.getEntry());
_curPos = updatePosition(_curPos.getEntry());
- updateBounds();
_lastModCount = Index.this._modCount;
}
}