Description: fix warnings while scanning PDFs
Forwarded: Christian Holler <decoder@own-hero.net>
Author: Gerald Turner <gturner@unzane.com>
Bug-Debian: http://bugs.debian.org/634009
Last-Update: 2011-07-15

--- fuzzyocr-3.6.0.orig/FuzzyOcr.pm	2011-07-15 11:34:42.000000000 -0700
+++ fuzzyocr-3.6.0/FuzzyOcr.pm	2011-07-15 11:33:12.000000000 -0700
@@ -261,6 +261,7 @@
 	if ($imgfiles{$filename}{ftype} == 6) {
 		unless ($conf->{focr_scan_pdfs}) {
 			infolog("Skipping PDF file: PDF Scanning was disabled in config");
+		        delete $imgfiles{$filename};
 			next;
 		}
 	} else {
