Riportata la R_98_01_01M sul main trunk

git-svn-id: svn://10.65.10.50/trunk@5883 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1998-01-09 16:14:46 +00:00
parent 98cd7bcf10
commit 37d71bc9d8
2 changed files with 13 additions and 10 deletions

View File

@ -4516,21 +4516,22 @@ bool TForm::print(
// quanto resta da stampare sta nell'ultima pagina // quanto resta da stampare sta nell'ultima pagina
if (!fixed_pages() && set_body(0,FALSE) * word(to-i+1) <= pr.formlen()- set_header(1,FALSE) - set_footer(0,FALSE)) if (!fixed_pages() && set_body(0,FALSE) * word(to-i+1) <= pr.formlen()- set_header(1,FALSE) - set_footer(0,FALSE))
{ {
while (i < to && from >= 0) // stampa l'ultima pagina while (i <= to && from >= 0) // stampa l'ultima pagina
{ {
i++;
set_last_page(TRUE); set_last_page(TRUE);
set_background(0, TRUE); set_background(0, TRUE);
set_header(0, TRUE); set_header(0, TRUE);
if (cursor()) { if (cursor())
{
*cursor() = i; *cursor() = i;
set_body(0, TRUE); set_body(0, TRUE);
} }
} i++;
} }
break; break;
} }
} }
}
set_body(page(pr), TRUE); set_body(page(pr), TRUE);
if (cursor()) if (cursor())

View File

@ -171,11 +171,13 @@ void TMask::add_field(TMask_field* f)
const short id = f->dlg(); const short id = f->dlg();
if (id > 0 && id < 512) if (id > 0 && id < 512)
{ {
#ifdef DBG if (_position.objptr(id))
if (_position.get_long(id)) {
if (id > DLG_QUIT)
NFCHECK("Il campo %d e' duplicato!", id); NFCHECK("Il campo %d e' duplicato!", id);
#endif }
_position.add_long(pos, id); else
_position.TArray::add((TObject*)pos, id);
} }
} }