mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Merge pull request #2023 from ivandrofly/macsub-fixpatch
[MacSub] - Fix numbering paragraph.
This commit is contained in:
commit
be5cc67d4c
@ -55,7 +55,7 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
||||
_errorCount = 0;
|
||||
char[] trimChar = { '/' };
|
||||
var p = new Paragraph();
|
||||
for (int i = 0; i < lines.Count; i++)
|
||||
for (int i = 0, lineNumber = 1; i < lines.Count; i++)
|
||||
{
|
||||
string line = lines[i].Trim();
|
||||
string nextLine = null;
|
||||
@ -86,7 +86,7 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
||||
if ((nextLine == null) || (nextLine.Length > 0 && nextLine[0] == '/'))
|
||||
{
|
||||
expecting = Expecting.EndFrame;
|
||||
p.Number = i;
|
||||
p.Number = lineNumber++;
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user