From d4b68bb27f42afb8338f35f9fda0c467ec5d8787 Mon Sep 17 00:00:00 2001 From: "Jeffrey H. Kingston" Date: Tue, 14 Sep 2010 19:35:24 +0000 Subject: Lout 3.18. git-svn-id: http://svn.savannah.nongnu.org/svn/lout/trunk@5 9365b830-b601-4143-9ba8-b4a8e2c3339c --- z48.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'z48.c') diff --git a/z48.c b/z48.c index 6c66e43..46d5882 100644 --- a/z48.c +++ b/z48.c @@ -1,7 +1,7 @@ /*@z48.c:PDF back end@********************************************************/ /* */ -/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.17) */ -/* COPYRIGHT (C) 1991, 1999 Jeffrey H. Kingston */ +/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.18) */ +/* COPYRIGHT (C) 1991, 2000 Jeffrey H. Kingston */ /* */ /* Jeffrey H. Kingston (jeff@cs.usyd.edu.au) */ /* Basser Department of Computer Science */ @@ -1135,7 +1135,8 @@ static void PDFPage_FlushRawBuffer(FILE* in_fp) /* always compress to the point where the raw buffer is empty */ do { err = deflate(&g_comp_stream, Z_NO_FLUSH); - if (err != Z_OK) + /* bug fix from newman-andy@yale.edu Feb 23 2000 if (err != Z_OK) */ + if ( err != Z_OK && g_comp_stream.avail_in != 0 ) Error(48, 11, "PDFPage_FlushRawBuffer: zlib error occurred",FATAL,no_fpos); /* IF compressed output buffer is full THEN flush it to disk and reset it */ -- cgit