[GRASS-SVN] r65455 - grass/trunk/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jun 12 15:03:36 PDT 2015
Author: martinl
Date: 2015-06-12 15:03:35 -0700 (Fri, 12 Jun 2015)
New Revision: 65455
Modified:
grass/trunk/gui/wxpython/core/render.py
Log:
Rendering failed: Error reading PPM file (#2691)
Modified: grass/trunk/gui/wxpython/core/render.py
===================================================================
--- grass/trunk/gui/wxpython/core/render.py 2015-06-12 21:47:27 UTC (rev 65454)
+++ grass/trunk/gui/wxpython/core/render.py 2015-06-12 22:03:35 UTC (rev 65455)
@@ -83,6 +83,8 @@
# we don't want it open, we just need the name
self.mapfile = mapfile.name
mapfile.close()
+ os.remove(self.mapfile) # remove empty file
+
self.maskfile = self.mapfile.rsplit(".",1)[0] + ".pgm"
# stores class which manages rendering instead of simple command - e.g. WMS
More information about the grass-commit
mailing list