1
0
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:
Steve Daulton
2018-03-19 14:42:06 +00:00
parent ce9b5bb9ee
commit e661c7da49

View File

@@ -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 );
}
}
}