diff --git a/include/form.cpp b/include/form.cpp index cdcefe2f5..0e82f8725 100755 --- a/include/form.cpp +++ b/include/form.cpp @@ -2554,7 +2554,7 @@ bool TForm::print(long from, long to) pr.set_fontname(_fontname); // according to current form const bool was_open = pr.isopen(); - _lastpage = FALSE; // non e' l'ultima pagina + set_last_page(FALSE); // non e' l'ultima pagina set_background(1, TRUE); @@ -2584,7 +2584,7 @@ bool TForm::print(long from, long to) if (i == lastrec) { if (cursor()) *cursor() = i; - _lastpage = TRUE; + set_last_page(TRUE); set_background(0, TRUE); set_header(0, TRUE); set_body(0, TRUE); diff --git a/include/form.h b/include/form.h index 9869675dd..54d9cdd3a 100755 --- a/include/form.h +++ b/include/form.h @@ -216,6 +216,9 @@ public: char f_centerright() { return _fink.get_char(8); } char f_horizontal() { return _fink.get_char(9); } char f_vertical() { return _fink.get_char(10); } + + // Notifica l'inizio di stampa dell'ultima pagina + void set_last_page(bool lp) { _lastpage = lp; } // if code == NULL it's a base form // otherwise it's integrated by a file definition