Fixed new bug in ocr via image compare

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@521 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-06-25 12:27:04 +00:00
parent f6bc9c6345
commit e26342dc7e

View File

@ -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);