1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-24 06:54:14 +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,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)