Fixed load of format QubeMasterImort

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1682 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2013-02-27 20:21:11 +00:00
parent 3ef331133d
commit 81537c9481
2 changed files with 4 additions and 2 deletions

View File

@ -111,6 +111,8 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
var tc = DecodeTimeCode(parts);
paragraph.EndTime = tc;
subtitle.Paragraphs.Add(paragraph);
if (paragraph.StartTime.TotalMilliseconds < 0.001)
_errorCount++;
paragraph = new Paragraph();
expecting = ExpectingLine.TimeStart;
}
@ -132,7 +134,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
}
}
}
else if (line.Trim().Length > 0)
else if (line.Trim().Length > 0 && line != "#PE2 Format file")
{
_errorCount++;
}

View File

@ -101,7 +101,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
subtitle.Paragraphs.Add(p);
else
_errorCount++;
p = null;
p = new Paragraph();
}
}
else if (line.Trim().Length > 0 && p != null)