Corretto errore AGA n. 182

git-svn-id: svn://10.65.10.50/trunk@139 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1994-09-02 15:14:22 +00:00
parent c5bb6635d1
commit 3c8504ea45

View File

@ -39,6 +39,7 @@ class CG1100_application : public TPrintapp
TMask* _msk;
stampe _tipo_stampa;
bool _salto_pag;
int _old_gruppo;
int _pcont_reclen;
int _cur_c1, _cur_c2;
TString _clivd, _clivdo;
@ -425,7 +426,6 @@ void CG1100_application::set_completa()
bool CG1100_application::elabora_riga()
{
static int old_gruppo = 0;
TRectype& curr_rec = *_rec;
switch (_tipo_stampa)
@ -470,10 +470,10 @@ bool CG1100_application::elabora_riga()
int new_gruppo = curr_rec.get_int(PCN_GRUPPO);
if (_salto_pag && new_gruppo != old_gruppo)
if (_salto_pag && new_gruppo != _old_gruppo)
{
const bool salta = old_gruppo > 0;
old_gruppo = new_gruppo;
const bool salta = _old_gruppo > 0;
_old_gruppo = new_gruppo;
return salta;
}
return FALSE;
@ -525,6 +525,7 @@ bool CG1100_application::set_print(int)
{
KEY tasto;
_old_gruppo = 0;
tasto = _msk->run();
if (tasto == K_ENTER)