Patch level : 2.0 628
Files correlati : cg1.exe Ricompilazione Demo : [ ] Commento : EP20142 Errore stampa bilancio per data limite (vedi dati ICS Firpo) git-svn-id: svn://10.65.10.50/trunk@11550 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
a7a4af2659
commit
4f3eefd1cc
@ -1557,10 +1557,11 @@ TRecnotype TCursor::readrec()
|
||||
}
|
||||
file().setstatus(NOERR);
|
||||
|
||||
if (_pos < _pagefirstpos || _pos > _pagefirstpos + _cmaxelpage)
|
||||
if (_pos < _pagefirstpos || _pos >= _pagefirstpos + _cmaxelpage)
|
||||
read_page(_pos / _cmaxelpage);
|
||||
|
||||
nrec = _page[_pos - _pagefirstpos];
|
||||
CHECKD(nrec >= 0, "Bad record position ", nrec);
|
||||
|
||||
curr().setdirty();
|
||||
file().readat(nrec);
|
||||
@ -1613,9 +1614,9 @@ TRecnotype TCursor::operator +=(const TRecnotype npos)
|
||||
if (_pos > _totrec)
|
||||
_pos = _totrec;
|
||||
else
|
||||
if (_pos < 0) _pos = 0;
|
||||
if (_pos < 0)
|
||||
_pos = 0;
|
||||
readrec();
|
||||
|
||||
return _pos;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user