mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Fixed bug regarding adjusting duration in seconds for last subtitle - thx mariner :)
This commit is contained in:
parent
91afa5099c
commit
0689de05a4
@ -342,7 +342,7 @@ namespace Nikse.SubtitleEdit.Core
|
|||||||
{
|
{
|
||||||
if (selectedIndexes == null || selectedIndexes.Contains(i))
|
if (selectedIndexes == null || selectedIndexes.Contains(i))
|
||||||
{
|
{
|
||||||
double nextStartMilliseconds = _paragraphs[_paragraphs.Count - 1].EndTime.TotalMilliseconds + TimeCode.BaseUnit;
|
double nextStartMilliseconds = double.MaxValue;
|
||||||
if (i + 1 < _paragraphs.Count)
|
if (i + 1 < _paragraphs.Count)
|
||||||
nextStartMilliseconds = _paragraphs[i + 1].StartTime.TotalMilliseconds;
|
nextStartMilliseconds = _paragraphs[i + 1].StartTime.TotalMilliseconds;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user