From 7892e95d39abf399d2b5a66a2e2798634c21d5c4 Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Mon, 15 Jun 2020 15:53:38 -0500 Subject: [PATCH] Fix off-by-one test reported by Henric Jungheim --- src/prefs/ExtImportPrefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prefs/ExtImportPrefs.cpp b/src/prefs/ExtImportPrefs.cpp index ed02bcf6e..6882eba45 100644 --- a/src/prefs/ExtImportPrefs.cpp +++ b/src/prefs/ExtImportPrefs.cpp @@ -460,7 +460,7 @@ void ExtImportPrefs::DoOnRuleTableSelect (int toprow) { auto &items = Importer::Get().GetImportItems(); - if (toprow < 0 || toprow > (int)items.size()) + if (toprow < 0 || toprow >= (int)items.size()) { return; }