[GRASS-SVN] r58639 - grass/trunk/gui/wxpython/vnet

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 8 02:49:39 PST 2014


Author: martinl
Date: 2014-01-08 02:49:39 -0800 (Wed, 08 Jan 2014)
New Revision: 58639

Modified:
   grass/trunk/gui/wxpython/vnet/widgets.py
Log:
wxGUI/vnet: fix failure on Windows

Modified: grass/trunk/gui/wxpython/vnet/widgets.py
===================================================================
--- grass/trunk/gui/wxpython/vnet/widgets.py	2014-01-07 16:18:40 UTC (rev 58638)
+++ grass/trunk/gui/wxpython/vnet/widgets.py	2014-01-08 10:49:39 UTC (rev 58639)
@@ -244,7 +244,8 @@
         self.itemDataMap[key][colNum] = cellVal
         index = self._findIndex(key)
 
-        self.SetStringItem(index, colNum, str(cellVal))
+        if index != -1:
+            self.SetStringItem(index, colNum, str(cellVal))
 
     def _findIndex(self, key):
         """!Find index for key"""



More information about the grass-commit mailing list