chiark
/
gitweb
/
~ijackson
/
ypp-sc-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eece318
)
Die after recognition with --single-page --upload
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 8 Jun 2009 13:19:34 +0000
(14:19 +0100)
committer
Ian Jackson
<Ian.Jackson@eu.citrix.com>
Mon, 8 Jun 2009 13:19:34 +0000
(14:19 +0100)
pctb/convert.c
patch
|
blob
|
history
diff --git
a/pctb/convert.c
b/pctb/convert.c
index eb7536d6fac4bcc3014f2b7c35880602febc3820..0114ea4fdfa98f037ff0a8794e43e5aa2ec21326 100644
(file)
--- 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);