Corretta l'aggiunta del formfeed a fine stampa. DA TESTARE!

git-svn-id: svn://10.65.10.50/trunk@5586 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
augusto 1997-11-11 08:37:56 +00:00
parent 3dc850721e
commit cd21c592f8

View File

@ -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)