diff --git a/include/printer.cpp b/include/printer.cpp index 8b490d5cf..f9b1f31c4 100755 --- a/include/printer.cpp +++ b/include/printer.cpp @@ -2084,15 +2084,9 @@ void TPrinter::print_txt(TTextfile& txt) void TPrinter::close () { - const bool isfirstpage = (_currentpage == 1 && _frompage == 0) || - (_currentpage <= _frompage); - - if (isopen() && // la stampante era aperta e non è vero che: - !((isfirstpage && _currentrow <= _headersize) || // non ho stampato nulla, oppure - (_printertype == screenvis && _footersize==0 ) || // sono in visualizzazione e non c'è footer, oppure - _printertype == winprinter || // è una winprinter, oppure - _printertype == fileprinter || // è una fileprinter, oppure - _printertype == export)) // è un export file + if (isopen() && // la stampante era aperta e + _currentrow >1 && // .. ho stampato qualcosa ... + _footersize>0 ) // ... c'è footer da stampare formfeed(); if (_fp)