about summary refs log tree commit diff
path: root/editor
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-04-10 23:30:43 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-04-10 23:30:43 +0000
commit8cc3724b6a1d1c120aec6b83339d309830f907da (patch)
tree42ab8ebca04668841cc88569497b52ed18fd5199 /editor
parent04be75d5e37d1604d41d4b1339b635e37dd2e5df (diff)
downloadnetpbm-mirror-8cc3724b6a1d1c120aec6b83339d309830f907da.tar.gz
netpbm-mirror-8cc3724b6a1d1c120aec6b83339d309830f907da.tar.xz
netpbm-mirror-8cc3724b6a1d1c120aec6b83339d309830f907da.zip
Don't allow -borderfile with -reportXXX - it doesn't work
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3595 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rw-r--r--editor/pnmcrop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/pnmcrop.c b/editor/pnmcrop.c
index ba8e9090..6ef1c280 100644
--- a/editor/pnmcrop.c
+++ b/editor/pnmcrop.c
@@ -162,6 +162,10 @@ parseCommandLine(int argc, const char ** argv,
     if (reportFullOpt && reportSizeOpt)
         pm_error("You cannot specify both -reportfull and -reportsize");
 
+    if ((reportFullOpt || reportSizeOpt) && borderfileSpec)
+        pm_error("You cannot specify -reportfull or -reportsize "
+                 "with -borderfile");
+
     if (reportFullOpt)
         cmdlineP->baseOperation = OP_REPORT_FULL;
     else if (reportSizeOpt)