1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-26 00:58:37 +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:
richardash1981 2011-12-22 22:36:20 +00:00
parent a469380de7
commit affcec50e4

View File

@ -240,6 +240,7 @@ void HistoryWindow::OnSize(wxSizeEvent & event)
{ {
Layout(); Layout();
mList->SetColumnWidth(0, mList->GetClientSize().x - mList->GetColumnWidth(1)); mList->SetColumnWidth(0, mList->GetClientSize().x - mList->GetColumnWidth(1));
if (mList->GetItemCount() > 0)
mList->EnsureVisible(mSelected); mList->EnsureVisible(mSelected);
} }