From ef2621c2c37ab536aaabd03a7ca95796b7294848 Mon Sep 17 00:00:00 2001 From: augusto Date: Tue, 7 Oct 1997 09:39:19 +0000 Subject: [PATCH] =?UTF-8?q?Abilitata=20il=20formfeed=20anche=20in=20visual?= =?UTF-8?q?izzazione=20(quando=20il=20footer=20=C3=A8=20definito=20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.65.10.50/trunk@5333 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/printer.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/printer.cpp b/include/printer.cpp index f92d23129..e29b3d154 100755 --- a/include/printer.cpp +++ b/include/printer.cpp @@ -2077,9 +2077,11 @@ void TPrinter::close () const bool isfirstpage = (_currentpage == 1 && _frompage == 0) || (_currentpage <= _frompage); - if (isopen() && (!isfirstpage || _currentrow > _headersize) && - (_printertype != screenvis && _printertype != winprinter - && _printertype != export)) + 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 == export)) // è un export file formfeed(); if (_fp)