Author: bugman Date: Wed Nov 27 14:01:35 2013 New Revision: 21672 URL: http://svn.gna.org/viewcvs/relax?rev=21672&view=rev Log: Fix for the GUI tests for a wxPython 2.9 ListCtrl.HitTest() bug. This only affects the relax test suite. The suite should now pass on all systems. Modified: trunk/gui/components/base_list.py Modified: trunk/gui/components/base_list.py URL: http://svn.gna.org/viewcvs/relax/trunk/gui/components/base_list.py?rev=21672&r1=21671&r2=21672&view=diff ============================================================================== --- trunk/gui/components/base_list.py (original) +++ trunk/gui/components/base_list.py Wed Nov 27 14:01:35 2013 @@ -333,8 +333,10 @@ # Find the item clicked on. item, flags = self.element.HitTest(pos) - # Get the ID string. - id = self.element.GetItemText(item) + # Get the ID string (handling wxPython 2.9 ListCtrl.HitTest() bugs). + id = None + if item != -1: + id = self.element.GetItemText(item) # Get the menu. popup_menus = self.generate_popup_menu(id=id)