chiark / gitweb /
Recognise single page even with --same
[ypp-sc-tools.db-test.git] / pctb / convert.c
index f3b87fea193de43d825417e706ec0ecad1175404..89115481d1488a9d929509b5a16f90296eff14e0 100644 (file)
@@ -92,7 +92,7 @@ static void run_analysis(void) {
   analyse(tf);
 
   if (o_flags & ff_upload) {
-    if (o_flags & ff_singlepage)
+    if (npages<=1)
       fatal("Recognition successful, but refusing to upload partial data\n"
            " (--single-page specified).  Specify an output mode?");
   }