From 01d188d3a1ad5455e6b538fac3a67e1008f7d4c6 Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Tue, 14 Mar 2017 16:23:25 +0100 Subject: [PATCH] Fix possible crash in "Batch convert" - thx FreezinG117 :) Fix #2287 --- src/Controls/SubtitleListView.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Controls/SubtitleListView.cs b/src/Controls/SubtitleListView.cs index cb87d61204..5ea6f639c1 100644 --- a/src/Controls/SubtitleListView.cs +++ b/src/Controls/SubtitleListView.cs @@ -794,7 +794,10 @@ private void SubtitleListViewLastColumnFill(object sender, EventArgs e) { width += Columns[i].Width; } - Columns[Columns.Count - 1].Width = Width - (width + 25); + if (Columns.Count > 0) + { + Columns[Columns.Count - 1].Width = Width - (width + 25); + } } public void SaveFirstVisibleIndex()