1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-14 15:20:29 +02:00

Fix off-by-one test reported by Henric Jungheim

This commit is contained in:
Leland Lucius 2020-06-15 15:53:38 -05:00
parent e7e27aa7e9
commit 7892e95d39

View File

@ -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;
}