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:
parent
e7e27aa7e9
commit
7892e95d39
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user