[GRASS-SVN] r60285 - in grass/trunk: gui/wxpython/core scripts/d.rast.leg
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 17 08:25:26 PDT 2014
Author: neteler
Date: 2014-05-17 08:25:26 -0700 (Sat, 17 May 2014)
New Revision: 60285
Modified:
grass/trunk/gui/wxpython/core/utils.py
grass/trunk/scripts/d.rast.leg/d.rast.leg.py
Log:
d.rast.leg/wxGUI: fix 'Unsupported command d.text' bug; fix font size
Modified: grass/trunk/gui/wxpython/core/utils.py
===================================================================
--- grass/trunk/gui/wxpython/core/utils.py 2014-05-17 12:23:07 UTC (rev 60284)
+++ grass/trunk/gui/wxpython/core/utils.py 2014-05-17 15:25:26 UTC (rev 60285)
@@ -1001,7 +1001,8 @@
'd.histogram' : 'histogram',
'd.colortable' : 'colortable',
'd.graph' : 'graph',
- 'd.out.file' : 'export'
+ 'd.out.file' : 'export',
+ 'd.text' : 'text'
}
ltype2command = {}
for (cmd, ltype) in command2ltype.items():
Modified: grass/trunk/scripts/d.rast.leg/d.rast.leg.py
===================================================================
--- grass/trunk/scripts/d.rast.leg/d.rast.leg.py 2014-05-17 12:23:07 UTC (rev 60284)
+++ grass/trunk/scripts/d.rast.leg/d.rast.leg.py 2014-05-17 15:25:26 UTC (rev 60285)
@@ -118,7 +118,7 @@
make_frame(f, 90, 100, 70, 100)
# use map name without mapset suffix
mapname = map.split('@')[0]
- grass.run_command('d.text', color='black', size=50, at='5,50', align='cl', text=mapname)
+ grass.run_command('d.text', color='black', size=5, at='5,50', align='cl', text=mapname)
#draw legend
More information about the grass-commit
mailing list