1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-22 06:22:58 +02:00

More stl idiom for TrackList and its iterators

This commit is contained in:
Paul Licameli
2018-01-14 16:55:49 -05:00
parent ba61e30cb2
commit 0265b8792d
8 changed files with 22 additions and 19 deletions

View File

@@ -108,7 +108,7 @@ bool SelectCommand::Apply(CommandExecutionContext context)
Error(wxT("Trying to select a negatively numbered track!"));
return false;
}
if (lastTrack >= tracks->GetCount())
if (lastTrack >= (long)tracks->size())
{
Error(wxT("Trying to select higher number track than exists!"));
return false;