chiark / gitweb /
Do not spuriously refuse to upload from single-page commodity lists
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 10 Sep 2009 15:44:32 +0000 (16:44 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 10 Sep 2009 15:44:32 +0000 (16:44 +0100)
yarrg/convert.c

index 555eefe..76a9a7a 100644 (file)
@@ -94,7 +94,7 @@ static void run_analysis(void) {
   analyse(tf);
 
   if (o_flags & ff_upload) {
-    if (npages<=1)
+    if (o_flags & ff_singlepage)
       fatal("Recognition successful, but refusing to upload partial data\n"
            " (--single-page specified).  Specify an output mode?");
   }