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,7 +685,9 @@ void MacrosWindow::PopulateList()
|
|||||||
mList->EnsureVisible( (int)mList->GetItemCount() -1 );
|
mList->EnsureVisible( (int)mList->GetItemCount() -1 );
|
||||||
mList->EnsureVisible( topItem );
|
mList->EnsureVisible( topItem );
|
||||||
// And then make sure whatever is selected is still visible...
|
// 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