From 8cc3724b6a1d1c120aec6b83339d309830f907da Mon Sep 17 00:00:00 2001 From: giraffedata Date: Wed, 10 Apr 2019 23:30:43 +0000 Subject: 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 --- editor/pnmcrop.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'editor') 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) -- cgit 1.4.1