From e26342dc7e2f69a18a1a7f1ed92310d3dbe21da8 Mon Sep 17 00:00:00 2001 From: niksedk Date: Sat, 25 Jun 2011 12:27:04 +0000 Subject: [PATCH] Fixed new bug in ocr via image compare git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@521 99eadd0c-20b8-1223-b5c4-2a2b2df33de2 --- src/Forms/VobSubOcr.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Forms/VobSubOcr.cs b/src/Forms/VobSubOcr.cs index c60d44f87..355f522ae 100644 --- a/src/Forms/VobSubOcr.cs +++ b/src/Forms/VobSubOcr.cs @@ -830,9 +830,9 @@ namespace Nikse.SubtitleEdit.Forms cutBitmap.Dispose(); } - if (smallestDifference > 0 && Width > 15) + if (smallestDifference > 0 && target.Width > 15) { - int oldDifference = smallestDifference; + // int oldDifference = smallestDifference; Bitmap cutBitmap = CopyBitmapSection(target, new Rectangle(1, 0, target.Width - 2, target.Height)); int topCrop = 0; cutBitmap = ImageSplitter.CropTopAndBottom(cutBitmap, out topCrop);