Преглед изворни кода

fix row highlighting

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47284 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz пре 13 година
родитељ
комит
6075c6cb76
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      gui/wxpython/gui_modules/dbm.py

+ 1 - 2
gui/wxpython/gui_modules/dbm.py

@@ -358,8 +358,7 @@ class VirtualAttributeList(wx.ListCtrl,
 
     def OnGetItemAttr(self, item):
         """!Get item attributes"""
-        index = self.itemIndexMap[item]
-        if ( index % 2) == 0:
+        if ( item % 2) == 0:
             return self.attr2
         else:
             return self.attr1