dabo Commit
Revision 2733
Date: 2007-01-22 04:40:25 -0800 (Mon, 22 Jan 2007)
Author: Ed
Changed:
U trunk/dabo/ui/uiwx/dPageFrameMixin.py
Log:
Added some code to work around an issue with wxPython 2.8 on the Mac.
Previously the code would trap the error raised by an invalid page number, but
this was producing a segfault on OS X after upgrading to 2.8.
Diff:
Modified: trunk/dabo/ui/uiwx/dPageFrameMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPageFrameMixin.py 2007-01-22 05:42:35 UTC (rev
2732)
+++ trunk/dabo/ui/uiwx/dPageFrameMixin.py 2007-01-22 12:40:25 UTC (rev
2733)
@@ -334,7 +334,11 @@
def _getSelectedPage(self):
try:
- ret = self.GetPage(self.GetSelection())
+ sel = self.GetSelection()
+ if sel < 0:
+ ret = None
+ else:
+ ret = self.GetPage(sel)
except:
ret = None
return ret
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev