[GRASS-SVN] r47458 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 5 08:41:18 EDT 2011


Author: annakrat
Date: 2011-08-05 05:41:18 -0700 (Fri, 05 Aug 2011)
New Revision: 47458

Modified:
   grass/trunk/gui/wxpython/gui_modules/colorrules.py
Log:
wxGUI: ColorTable: rgb column must be character only

Modified: grass/trunk/gui/wxpython/gui_modules/colorrules.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/colorrules.py	2011-08-05 11:51:02 UTC (rev 47457)
+++ grass/trunk/gui/wxpython/gui_modules/colorrules.py	2011-08-05 12:41:18 UTC (rev 47458)
@@ -525,7 +525,7 @@
         self.cb_vcol.InsertColumns(vector = self.inmap, layer = vlayer, dbInfo = self.dbInfo)
         self.cb_vcol.SetSelection(0)
         self.properties['column'] = self.cb_vcol.GetString(0)
-        self.cb_vrgb.InsertColumns(vector = self.inmap, layer = vlayer, dbInfo = self.dbInfo)
+        self.cb_vrgb.InsertColumns(vector = self.inmap, layer = vlayer, type = ["character"], dbInfo = self.dbInfo)
         found = self.cb_vrgb.FindString('GRASSRGB')
         if found != wx.NOT_FOUND:
             self.cb_vrgb.SetSelection(found)
@@ -546,7 +546,7 @@
                                    map = self.inmap,
                                   layer = self.properties['layer'],
                                   columns = 'GRASSRGB varchar(20)')
-            self.cb_vrgb.InsertColumns(self.inmap, self.properties['layer'])
+            self.cb_vrgb.InsertColumns(self.inmap, type = ["character"], self.properties['layer'])
             self.cb_vrgb.SetStringSelection('GRASSRGB')
         else:
             gcmd.GMessage(parent = self,



More information about the grass-commit mailing list