From 7a5291a126732a4ca220a79cfe5e6763e71ace73 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 4 May 2019 19:39:29 +0000 Subject: Release 10.86.03 git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3602 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- editor/pnmcrop.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'editor') diff --git a/editor/pnmcrop.c b/editor/pnmcrop.c index dba40c95..d6bae1d3 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) -- cgit 1.4.1