From bf9962c3f0014f9dc7d51b79c5971a455c161edf Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Mon, 7 Mar 2011 20:19:20 +0000 Subject: [PATCH] Check if we are just displaying the empty game list before assuming that the ratings column is present. Fixes issue 4183. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7315 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/GameListCtrl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Core/DolphinWX/Src/GameListCtrl.cpp b/Source/Core/DolphinWX/Src/GameListCtrl.cpp index 6203d7f3f5..1c507f4a6d 100644 --- a/Source/Core/DolphinWX/Src/GameListCtrl.cpp +++ b/Source/Core/DolphinWX/Src/GameListCtrl.cpp @@ -883,6 +883,9 @@ void CGameListCtrl::OnMouseMotion(wxMouseEvent& event) long item = HitTest(event.GetPosition(), flags, &subitem); static int lastItem = -1; + if (GetColumnCount() <= 1) + return; + if (item != wxNOT_FOUND) { wxRect Rect;