mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 00:30:07 +02:00
Do not try and focus an item which isn't there if there is no history - patch by Leland
This commit is contained in:
parent
a469380de7
commit
affcec50e4
@ -240,7 +240,8 @@ void HistoryWindow::OnSize(wxSizeEvent & event)
|
||||
{
|
||||
Layout();
|
||||
mList->SetColumnWidth(0, mList->GetClientSize().x - mList->GetColumnWidth(1));
|
||||
mList->EnsureVisible(mSelected);
|
||||
if (mList->GetItemCount() > 0)
|
||||
mList->EnsureVisible(mSelected);
|
||||
}
|
||||
|
||||
void HistoryWindow::OnChar(wxKeyEvent &event)
|
||||
|
Loading…
x
Reference in New Issue
Block a user