chiark / gitweb /
Do not attempt (and fail due to safety catch) to update reject dict if --dict-no...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 10 Sep 2009 15:48:25 +0000 (16:48 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 10 Sep 2009 15:48:25 +0000 (16:48 +0100)
yarrg/ocr.c

index 92b0903..08bc60c 100644 (file)
@@ -279,7 +279,8 @@ static int should_reject(OcrReader *rd) {
   int ovector[30];
 
   if (!rejections_loaded) {
-    fetch_with_rsync("reject");
+    if (o_flags & ff_dict_fetch)
+      fetch_with_rsync("reject");
     load_rejections("master");
     load_rejections("local");
     rejections_loaded=1;