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 92b09031c5c53ccde0029c0b7a26343db68645c6..08bc60c6b4c1efa3664bdcfd05faaca70faba1c2 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;