From 663030807a054534cd545be2043ea30eedc4b3e6 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 8 Jun 2009 14:19:34 +0100 Subject: [PATCH 1/1] Die after recognition with --single-page --upload --- pctb/convert.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pctb/convert.c b/pctb/convert.c index eb7536d..0114ea4 100644 --- a/pctb/convert.c +++ b/pctb/convert.c @@ -77,6 +77,10 @@ static void run_analysis(void) { progress("running recognition..."); analyse(tf); + if (o_single_page && !strcmp(o_outputmode,"upload")) + fatal("Recognition successful, but refusing to upload partial data\n" + " (--single-page specified). Specify an output mode?"); + sysassert( fseek(tf,0,SEEK_SET) == 0); progress_log("processing results (--%s)...", o_outputmode); -- 2.30.2