From: Ben Pfaff Date: Sun, 14 May 2006 21:05:13 +0000 (+0000) Subject: (outp_eject_page): Always make sure that a page is open upon return. X-Git-Tag: v0.6.0~851 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e54658b4e9562a5894d4585e73072c749e0996d;p=pspp-builds.git (outp_eject_page): Always make sure that a page is open upon return. --- diff --git a/src/output/ChangeLog b/src/output/ChangeLog index af13b4b4..e4f21a00 100644 --- a/src/output/ChangeLog +++ b/src/output/ChangeLog @@ -1,3 +1,8 @@ +Sun May 14 14:03:56 2006 Ben Pfaff + + * output.c (outp_eject_page): Always make sure that a page is open + upon return. + Sun May 14 13:54:58 2006 Ben Pfaff * postscript.c: (ps_chart_finalise) Fix format of %%EndDocument diff --git a/src/output/output.c b/src/output/output.c index d590a38e..ffaa7eb8 100644 --- a/src/output/output.c +++ b/src/output/output.c @@ -1162,16 +1162,14 @@ outp_close_page (struct outp_driver *d) } } -/* Ejects the paper on device D, if a page is open and is not - blank. */ +/* Ejects the page on device D, if a page is open and non-blank, + and opens a new page. */ void outp_eject_page (struct outp_driver *d) { if (d->page_open && d->cp_y != 0) - { - outp_close_page (d); - outp_open_page (d); - } + outp_close_page (d); + outp_open_page (d); } /* Returns the width of string S, in device units, when output on