about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2023-12-26 19:11:15 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2023-12-26 19:11:15 +0000
commitfd0e007d67e6dbab2883eb99871b9609ca814b11 (patch)
treeca9cd525a21fe259fdd8dc079ddc2d1d10aff94c
parenta765b07175ef896a860aa0c1f36609fd2b7b0b63 (diff)
downloadnetpbm-mirror-fd0e007d67e6dbab2883eb99871b9609ca814b11.tar.gz
netpbm-mirror-fd0e007d67e6dbab2883eb99871b9609ca814b11.tar.xz
netpbm-mirror-fd0e007d67e6dbab2883eb99871b9609ca814b11.zip
Release 11.02.07
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@4822 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--doc/HISTORY6
-rw-r--r--editor/pnmpad.c4
-rw-r--r--version.mk2
3 files changed, 9 insertions, 3 deletions
diff --git a/doc/HISTORY b/doc/HISTORY
index 90d41709..58657062 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -4,6 +4,12 @@ Netpbm.
 CHANGE HISTORY 
 --------------
 
+23.12.26 BJH  Release 11.02.07
+
+              pnmpad: fix behavior with -left, -right, and -width together or
+              -top, -bottom, -height together: ignores -width where it should
+              fail.  Broken in Netpbm 10.72 (September 2015).
+
 23.12.05 BJH  Release 11.02.06
 
               pnmconvol: Restore ability of convolution matrix to be a
diff --git a/editor/pnmpad.c b/editor/pnmpad.c
index 0fff88d0..10b69d03 100644
--- a/editor/pnmpad.c
+++ b/editor/pnmpad.c
@@ -304,8 +304,8 @@ computePadSizeBeforeMult(unsigned int   const unpaddedSize,
 -----------------------------------------------------------------------------*/
     if (sizeSpec) {
         if (begPadSpec && endPadSpec) {
-            if (begPadReq + unpaddedSize + endPadReq < unpaddedSize) {
-                pm_error("Beginning adding (%u), and end "
+            if (begPadReq + unpaddedSize + endPadReq < sizeReq) {
+                pm_error("Beginning padding (%u), and end "
                          "padding (%u) are insufficient to bring the "
                          "image size of %u up to %u.",
                          begPadReq, endPadReq, unpaddedSize, sizeReq);
diff --git a/version.mk b/version.mk
index d4510af8..ee5b8e4d 100644
--- a/version.mk
+++ b/version.mk
@@ -1,3 +1,3 @@
 NETPBM_MAJOR_RELEASE = 11
 NETPBM_MINOR_RELEASE = 2
-NETPBM_POINT_RELEASE = 6
+NETPBM_POINT_RELEASE = 7