Corretto errore salto pagina

git-svn-id: svn://10.65.10.50/trunk@2332 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
nik 1995-12-22 08:36:27 +00:00
parent b3fd495b5c
commit 1eb359c41b

View File

@ -57,8 +57,8 @@ class TContoOccas : public TBill
{
long _s;
char _t;
TString16 _occfpi;
TString80 _descrizione;
TString _occfpi;
TString _descrizione;
public:
const TContoOccas& set(int g = 0, int c = 0, long s = 0L, char t = ' ',
@ -868,20 +868,26 @@ void CG3400_application::fill_page(int start_riga, int righe_iva_settate)
{
TString256 rigas;
int rrr = start_riga;
int r_l = printer().rows_left() - start_riga - righe_iva_settate;
int rows_left = printer().rows_left();
if (rows_left <= 0)
{
rows_left = printer().formlen() - (printer().headersize()+1) - printer().footersize();
_forza_ariportare = TRUE;
}
int r_l = rows_left - start_riga - righe_iva_settate;
/*******
if (r_l < 0)
{
// Tolgo l'intestazione + la riga con i riporti
r_l += printer().formlen() - (printer().headersize() + 1);
_forza_ariportare = TRUE;
}
****/
// Se sono rimaste righe da riempire
if (r_l > 0)
{
rigas.fill('=', _stampa_width);
rigas.cut(_stampa_width+1);
// sprintf(frm, "%%%3ds", _stampa_width);
set_row(rrr++, "%s", (const char*) rigas);
int j=0;
// Calcola una specie di coefficiente angolare
@ -937,7 +943,11 @@ print_action CG3400_application::postprocess_page(int file, int counter)
if (_nuovo_mese)
{
righe = set_totali_pagina(righe);
// Nella stampa su bollato metto un segno su tutte le righe
#ifdef DBG
if (!_stampa_definitiva)
fill_page(righe, righe_iva_settate);
#endif
// Nella stampa su bollato metto un segno su tutte le righe
if (_stampa_definitiva)
fill_page(righe, righe_iva_settate);
}