about summary refs log tree commit diff
path: root/editor/pamcut.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2008-08-29 19:47:32 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2008-08-29 19:47:32 +0000
commit37f38cafb6719d3bde8c487a597400a81d733aba (patch)
tree341b54f186747d0b39d6ac5015c66bc929eecde2 /editor/pamcut.c
parentfbedc8c762da4ad527b4bd695473606b4b38d412 (diff)
downloadnetpbm-mirror-37f38cafb6719d3bde8c487a597400a81d733aba.tar.gz
netpbm-mirror-37f38cafb6719d3bde8c487a597400a81d733aba.tar.xz
netpbm-mirror-37f38cafb6719d3bde8c487a597400a81d733aba.zip
Release 10.35.50
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@718 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor/pamcut.c')
-rw-r--r--editor/pamcut.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/editor/pamcut.c b/editor/pamcut.c
index 7d95fa0a..c5d53f44 100644
--- a/editor/pamcut.c
+++ b/editor/pamcut.c
@@ -504,7 +504,17 @@ cutOneImage(FILE *             const ifP,
     if (!cmdline.pad)
         rejectOutOfBounds(inpam.width, inpam.height, leftcol, rightcol, 
                           toprow, bottomrow);
-
+    else {
+        if (cmdline.left > cmdline.right) 
+            pm_error("You have specified a left edge (%d) that is to the right\n"
+                     "of the right edge you specified (%d)", 
+                     cmdline.left, cmdline.right);
+        
+        if (cmdline.top > cmdline.bottom) 
+            pm_error("You have specified a top edge (%d) that is below\n"
+                     "the bottom edge you specified (%d)", 
+                     cmdline.top, cmdline.bottom);
+    }
     if (cmdline.verbose) {
         pm_message("Image goes from Row 0, Column 0 through Row %d, Column %d",
                    inpam.height-1, inpam.width-1);