From 931093a65f85dc6e4801f506330390b8bc7ba0ef Mon Sep 17 00:00:00 2001 From: niksedk Date: Fri, 6 Apr 2012 06:36:41 +0000 Subject: [PATCH] Fixed crash in vob sub reading - thx T.S. :) git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1092 99eadd0c-20b8-1223-b5c4-2a2b2df33de2 --- src/Logic/VobSub/VobSubParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Logic/VobSub/VobSubParser.cs b/src/Logic/VobSub/VobSubParser.cs index 61fd71863..6c6095b1f 100644 --- a/src/Logic/VobSub/VobSubParser.cs +++ b/src/Logic/VobSub/VobSubParser.cs @@ -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); }