Fix crash in last commit - thx Leon :)

Related to #5408
This commit is contained in:
niksedk 2021-10-21 17:02:40 +02:00
parent 17bf227342
commit 48e756be3e
2 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,7 @@
* Take first audio track when loading wave form - thx Tuan-P
* Fix issue with waveform original out of sync - thx Leon
* Fix "Set start and set end of prev" when playing - thx Leon
* Fix "Set end minus gap, go to next and start next here" - thx Leon
3.6.2 (24th August 2021)

View File

@ -1939,6 +1939,11 @@ namespace Nikse.SubtitleEdit.Controls
public void SetStartTimeAndDuration(int index, Paragraph paragraph, Paragraph next, Paragraph prev)
{
if (paragraph == null)
{
return;
}
if (IsValidIndex(index))
{
ListViewItem item = Items[index];