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 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)