From b0051c1b92d528ef93ce1797bd92ea5a67ac8132 Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Sat, 11 Aug 2018 15:47:57 +0200 Subject: [PATCH] Update list view after "Extend" shortcut - thx OmrSi :) Fix #3014 --- src/Forms/Main.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Forms/Main.cs b/src/Forms/Main.cs index 2f57c3a76..08c9ba8fa 100644 --- a/src/Forms/Main.cs +++ b/src/Forms/Main.cs @@ -6447,8 +6447,14 @@ namespace Nikse.SubtitleEdit.Forms private void RefreshSelectedParagraph() { + var idx = FirstSelectedIndex; + var p = _subtitle.GetParagraphOrDefault(idx); _subtitleListViewIndex = -1; SubtitleListview1_SelectedIndexChanged(null, null); + if (p != null) + { + SubtitleListview1.SetStartTimeAndDuration(idx, p, _subtitle.GetParagraphOrDefault(idx + 1), _subtitle.GetParagraphOrDefault(idx - 1)); + } } private int GetPositionFromWordIndex(string text, int wordIndex)