summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorTony Wasserka <neobrainx@gmail.com>2014-06-20 14:12:15 +0200
committerTony Wasserka <neobrainx@gmail.com>2014-06-20 14:12:15 +0200
commit07da9cbcf460dd909ef9fae3bbed466f499c749b (patch)
tree02f2e155461600c933219d1796f9814f21220f8f /Source/Core
parentddce7e97788d921fc984686a98bbe0d51d1de8ca (diff)
parentbb6d360b066516c7b8c46541750e25a70f494123 (diff)
Merge pull request #518 from glennricster/master
Ensure (Get|Set)ColumnWidth is not called on a non existant column.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/GameListCtrl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/GameListCtrl.cpp b/Source/Core/DolphinWX/GameListCtrl.cpp
index db8880dc83..aaf43639de 100644
--- a/Source/Core/DolphinWX/GameListCtrl.cpp
+++ b/Source/Core/DolphinWX/GameListCtrl.cpp
@@ -1285,7 +1285,7 @@ void CGameListCtrl::AutomaticColumnWidth()
{
SetColumnWidth(0, rc.GetWidth());
}
- else
+ else if (GetColumnCount() > 0)
{
int resizable = rc.GetWidth() - (