Minor update for last commit

This commit is contained in:
niksedk 2021-12-11 18:45:36 +01:00
parent bec59649e2
commit c54e87f62f

View File

@ -113,7 +113,7 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
LinesBackground = ReadPoints(stream); LinesBackground = ReadPoints(stream);
} }
if (Width >= 0 && Height >= 0 && Width <= 1920 && Height <= 1080 && Text.IndexOf('\0') < 0) if (Width > 0 && Height > 0 && Width <= 1920 && Height <= 1080 && Text.IndexOf('\0') < 0)
{ {
LoadedOk = true; LoadedOk = true;
} }
@ -156,7 +156,7 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
LinesForeground = ReadPoints(stream); LinesForeground = ReadPoints(stream);
LinesBackground = ReadPoints(stream); LinesBackground = ReadPoints(stream);
if (Width >= 0 && Height >= 0 && Width <= 1920 && Height <= 1080 && Text.IndexOf('\0') < 0) if (Width > 0 && Height > 0 && Width <= 1920 && Height <= 1080 && Text.IndexOf('\0') < 0)
{ {
LoadedOk = true; LoadedOk = true;
} }