Fix missing letters in "Binary image compare" - thx

Flitskikker :)
Fix #2612
This commit is contained in:
Nikolaj Olsson 2017-10-22 18:04:09 +02:00
parent cb41c78c83
commit 067563d853

View File

@ -750,10 +750,15 @@ namespace Nikse.SubtitleEdit.Logic
if (right && points != null)
{
int add = FindMaxX(points, x) - x;
width = width + add;
width += add;
subtractSpacePixels = add;
}
if (clean && startX + 1 < x)
{
width++;
}
if (points == null)
{
width++;
@ -833,6 +838,7 @@ namespace Nikse.SubtitleEdit.Logic
var points = new List<Point>();
int y = 0;
int maxSlide = bmp.Height / 4;
while (y < bmp.Height)
{
if (bmp.GetAlpha(x, y) > 100)