about summary refs log tree commit diff
path: root/editor
diff options
context:
space:
mode:
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)