瀏覽代碼

d.rast.leg/wxGUI: fix 'Unsupported command d.text' bug; fix font size

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@60286 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 11 年之前
父節點
當前提交
6548ca7fec
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 2 1
      gui/wxpython/core/utils.py
  2. 1 1
      scripts/d.rast.leg/d.rast.leg.py

+ 2 - 1
gui/wxpython/core/utils.py

@@ -1001,7 +1001,8 @@ command2ltype = {'d.rast'         : 'raster',
                  '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():

+ 1 - 1
scripts/d.rast.leg/d.rast.leg.py

@@ -118,7 +118,7 @@ def main():
     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