Fixed not showing changed duration when changing start/end in waveform - thx Herman/Mirko :)

This commit is contained in:
niksedk 2014-10-14 14:27:58 +02:00
parent e733860ff9
commit 9b13684fa0

View File

@ -917,6 +917,8 @@ namespace Nikse.SubtitleEdit.Controls
item.SubItems[ColumnIndexEnd].Text = "-";
else
item.SubItems[ColumnIndexEnd].Text = paragraph.EndTime.ToHHMMSSFF();
item.SubItems[ColumnIndexDuration].Text = string.Format("{0},{1:00}", paragraph.Duration.Seconds, Logic.SubtitleFormats.SubtitleFormat.MillisecondsToFramesMaxFrameRate(paragraph.Duration.Milliseconds));
}
else
{
@ -929,6 +931,8 @@ namespace Nikse.SubtitleEdit.Controls
item.SubItems[ColumnIndexEnd].Text = "-";
else
item.SubItems[ColumnIndexEnd].Text = paragraph.EndTime.ToString();
item.SubItems[ColumnIndexDuration].Text = string.Format("{0},{1:000}", paragraph.Duration.Seconds, paragraph.Duration.Milliseconds);
}
}
}