diff options
-rw-r--r-- | doc/HISTORY | 5 | ||||
-rw-r--r-- | generator/pamcrater.c | 2 | ||||
-rw-r--r-- | version.mk | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/doc/HISTORY b/doc/HISTORY index 541e5f2b..fb1ffbc5 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -4,6 +4,11 @@ Netpbm. CHANGE HISTORY -------------- +17.05.27 BJH Release 10.78.04 + + pamcrater: fix incorrect output with non-square image. + Introduced in Netpbm 10.69 (December 2014). + 17.04.23 BJH Release 10.78.03 libnetpbm: fix bug: pm_system_XXX closes Standard Input if you diff --git a/generator/pamcrater.c b/generator/pamcrater.c index 50745501..8c1fda40 100644 --- a/generator/pamcrater.c +++ b/generator/pamcrater.c @@ -215,7 +215,7 @@ terrainModP(struct pam * const pamP, would be a pointer to the sample at Column 2 or Row 2. If they are both -1, we would point to Column 9, Row 9. -----------------------------------------------------------------------------*/ - return &terrain[mod(x, pamP->height)][mod(y, pamP->width)][0]; + return &terrain[mod(y, pamP->height)][mod(x, pamP->width)][0]; } diff --git a/version.mk b/version.mk index ab41a04c..15e6a2e5 100644 --- a/version.mk +++ b/version.mk @@ -1,3 +1,3 @@ NETPBM_MAJOR_RELEASE = 10 NETPBM_MINOR_RELEASE = 78 -NETPBM_POINT_RELEASE = 3 +NETPBM_POINT_RELEASE = 4 |