mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-13 16:16:33 +01:00
Fix off-by-one test reported by Henric Jungheim
This commit is contained in:
@@ -460,7 +460,7 @@ void ExtImportPrefs::DoOnRuleTableSelect (int toprow)
|
|||||||
{
|
{
|
||||||
auto &items = Importer::Get().GetImportItems();
|
auto &items = Importer::Get().GetImportItems();
|
||||||
|
|
||||||
if (toprow < 0 || toprow > (int)items.size())
|
if (toprow < 0 || toprow >= (int)items.size())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user