Fixed crash in vob sub reading - thx T.S. :)

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1092 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2012-04-06 06:36:41 +00:00
parent 2f5e97134e
commit 931093a65f

View File

@ -181,7 +181,7 @@ namespace Nikse.SubtitleEdit.Logic.VobSub
VobSubMergedPack pack = list[i];
if (pack.SubPicture == null || pack.SubPicture.ImageDisplayArea.Width <= 3 || pack.SubPicture.ImageDisplayArea.Height <= 2)
list.RemoveAt(i);
if (pack.EndTime.TotalSeconds - pack.StartTime.TotalSeconds < 0.1 && pack.SubPicture.ImageDisplayArea.Width <= 10 && pack.SubPicture.ImageDisplayArea.Height <= 10)
else if (pack.EndTime.TotalSeconds - pack.StartTime.TotalSeconds < 0.1 && pack.SubPicture.ImageDisplayArea.Width <= 10 && pack.SubPicture.ImageDisplayArea.Height <= 10)
list.RemoveAt(i);
}