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