mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
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:
parent
3ef331133d
commit
81537c9481
@ -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++;
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user