mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Ensure (Get|Set)ColumnWidth is not called on a non existant column.
The AutomaticColumnWidth method can be called when the game list does not have any columns (for example when dolphin is starting). In this case wxWidgets assertions fail when (Get|Set)ColumnWidth are called on columns that do not exist. So check to make sure there are columns to prevent this.
This commit is contained in:
@ -1285,7 +1285,7 @@ void CGameListCtrl::AutomaticColumnWidth()
|
||||
{
|
||||
SetColumnWidth(0, rc.GetWidth());
|
||||
}
|
||||
else
|
||||
else if (GetColumnCount() > 0)
|
||||
{
|
||||
|
||||
int resizable = rc.GetWidth() - (
|
||||
|
Reference in New Issue
Block a user