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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Oct 10 03:47:00 EDT 2008


Author: martinl
Date: 2008-10-10 03:47:00 -0400 (Fri, 10 Oct 2008)
New Revision: 33801

Modified:
   grass/trunk/gui/wxpython/gui_modules/colorrules.py
Log:
wxGUI: fix find colr2 element
(merge from devbr6, r33800)


Modified: grass/trunk/gui/wxpython/gui_modules/colorrules.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/colorrules.py	2008-10-10 07:45:01 UTC (rev 33800)
+++ grass/trunk/gui/wxpython/gui_modules/colorrules.py	2008-10-10 07:47:00 UTC (rev 33801)
@@ -515,8 +515,9 @@
             
             # find existing color table and copy to temp file
             try:
-                old_colrtable = grass.find_file(name=self.inmap, element='colr2')['file']
-            except TypeError:
+                name, mapset = self.inmap.split('@')
+                old_colrtable = grass.find_file(name=name, element='colr2/' + mapset)['file']
+            except (TypeError, ValueError):
                 old_colrtable = None
             
             if old_colrtable:



More information about the grass-commit mailing list