[GRASS-SVN] r49537 - grass/trunk/gui/wxpython/mapdisp

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 5 03:18:07 EST 2011


Author: mmetz
Date: 2011-12-05 00:18:07 -0800 (Mon, 05 Dec 2011)
New Revision: 49537

Modified:
   grass/trunk/gui/wxpython/mapdisp/frame.py
Log:
wxGUI mapdisp: unpack only the first two values, account for where='cat=1'

Modified: grass/trunk/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/frame.py	2011-12-05 06:22:07 UTC (rev 49536)
+++ grass/trunk/gui/wxpython/mapdisp/frame.py	2011-12-05 08:18:07 UTC (rev 49537)
@@ -862,7 +862,7 @@
         vparam = self.tree.GetPyData(self.tree.layer_selected)[0]['cmd']
         for p in vparam:
             if '=' in p:
-                parg,pval = p.split('=')
+                parg,pval = p.split('=')[0:2]
                 if parg == 'icon': icon = pval
                 elif parg == 'size': size = int(pval)
 



More information about the grass-commit mailing list