[GRASS-SVN] r57959 - grass/trunk/gui/wxpython/animation
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 8 17:21:14 PDT 2013
Author: annakrat
Date: 2013-10-08 17:21:13 -0700 (Tue, 08 Oct 2013)
New Revision: 57959
Modified:
grass/trunk/gui/wxpython/animation/dialogs.py
Log:
wxGUI/animation: fix PyAssertionError on Windows
Modified: grass/trunk/gui/wxpython/animation/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/animation/dialogs.py 2013-10-08 23:02:41 UTC (rev 57958)
+++ grass/trunk/gui/wxpython/animation/dialogs.py 2013-10-09 00:21:13 UTC (rev 57959)
@@ -614,7 +614,8 @@
self.listbox.Clear()
for anim in self.animationData:
self.listbox.Append(anim.name, clientData = anim)
- self.listbox.SetSelection(0)
+ if self.animationData:
+ self.listbox.SetSelection(0)
def _getNextIndex(self):
indices = [anim.windowIndex for anim in self.animationData]
More information about the grass-commit
mailing list