about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/other/jpeg2000/pamtojpeg2k.c2
-rw-r--r--doc/HISTORY3
2 files changed, 4 insertions, 1 deletions
diff --git a/converter/other/jpeg2000/pamtojpeg2k.c b/converter/other/jpeg2000/pamtojpeg2k.c
index e2bb125b..a886c390 100644
--- a/converter/other/jpeg2000/pamtojpeg2k.c
+++ b/converter/other/jpeg2000/pamtojpeg2k.c
@@ -432,7 +432,7 @@ writeJpc(jas_image_t *      const jasperP,
                 cmdline.imgareatlx,
                 cmdline.imgareatly,
                 cmdline.tilegrdtlx,
-                cmdline.tilegrdtlx,
+                cmdline.tilegrdtly,
                 cmdline.tilewidth,
                 cmdline.tileheight,
                 cmdline.prcwidth,
diff --git a/doc/HISTORY b/doc/HISTORY
index 92b0b041..eabfe474 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -34,6 +34,9 @@ not yet  BJH  Release 10.92.00
               pamtojpeg2k: Fix failure with most -progression values.  Always
               broken (pamtojpeg2k was new in Netpbm 10.12 (November 2002)).
 
+              pamtojpeg2k: Fix wrong result with -tilegrdtly.  Always
+              broken (pamtojpeg2k was new in Netpbm 10.12 (November 2002)).
+
               pamarith: Fix crash with -compare where inputs are PBM or
               BLACKANDWHITE PAM.  Broken in Netpbm 10.14 (February 2003).