about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/other/bmepsoe.c2
-rw-r--r--doc/HISTORY3
2 files changed, 4 insertions, 1 deletions
diff --git a/converter/other/bmepsoe.c b/converter/other/bmepsoe.c
index 1df687f9..02bf39aa 100644
--- a/converter/other/bmepsoe.c
+++ b/converter/other/bmepsoe.c
@@ -227,7 +227,7 @@ do_flate_flush(Output_Encoder * const oP,
   
     if (iptr && optr && is && os) {
         is = oP->fl_i_used;
-        if (is) {
+        if (is || final) {
             oP->flate_stream.next_in = iptr;
             oP->flate_stream.avail_in = is;
             if (final) { 
diff --git a/doc/HISTORY b/doc/HISTORY
index 0c19df93..d2d3039d 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -26,6 +26,9 @@ Not yet  BJH  Release 10.53.00
               pamstereogram: slight change to dpi and eye separation defaults.
               invert near/far dark/light association.  Thanks Scott Pakin.
 
+              pnmtops: Fix incorrect output with -flate.  Thanks Prophet of
+              the Way <afu@wta.att.ne.jp>.
+
               sgitopnm: Fix arithmetic overflow on -channel option.  Thanks
               Prophet of the Way <afu@wta.att.ne.jp>.