[GRASS-SVN] r65311 - grass/trunk/display/d.mon

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 22 06:45:31 PDT 2015


Author: martinl
Date: 2015-05-22 06:45:31 -0700 (Fri, 22 May 2015)
New Revision: 65311

Modified:
   grass/trunk/display/d.mon/render_cmd.py
Log:
d.mon: fix overlays in standalone wx monitors


Modified: grass/trunk/display/d.mon/render_cmd.py
===================================================================
--- grass/trunk/display/d.mon/render_cmd.py	2015-05-22 09:12:04 UTC (rev 65310)
+++ grass/trunk/display/d.mon/render_cmd.py	2015-05-22 13:45:31 UTC (rev 65311)
@@ -103,7 +103,11 @@
     
     width, height = read_env_file(os.path.join(path, 'env'))
     if mon.startswith('wx'):
-        mapfile = tempfile.NamedTemporaryFile(dir=path).name + '.ppm'
+        mapfile = tempfile.NamedTemporaryFile(dir=path).name
+        if cmd[0] in ('d.barscale', 'd.legend', 'd.northarrow'):
+            mapfile += '.png'
+        else:
+            mapfile += '.ppm'
     else:
         mapfile = None
         adjust_region(width, height)



More information about the grass-commit mailing list