mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
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:
parent
f6bc9c6345
commit
e26342dc7e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user