mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-15 17:11:20 +01:00
Fix assert on deletion of last macro item
This commit is contained in:
@@ -685,7 +685,9 @@ void MacrosWindow::PopulateList()
|
||||
mList->EnsureVisible( (int)mList->GetItemCount() -1 );
|
||||
mList->EnsureVisible( topItem );
|
||||
// And then make sure whatever is selected is still visible...
|
||||
mList->EnsureVisible( mSelectedCommand );
|
||||
if (mSelectedCommand >= 0) {
|
||||
mList->EnsureVisible( mSelectedCommand );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user