Browse Source

Rendering failed: Error reading PPM file (https://trac.osgeo.org/grass/ticket/2691)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65455 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 years ago
parent
commit
7a981e4b8b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      gui/wxpython/core/render.py

+ 2 - 0
gui/wxpython/core/render.py

@@ -83,6 +83,8 @@ class Layer(object):
             # we don't want it open, we just need the name
             # we don't want it open, we just need the name
             self.mapfile = mapfile.name
             self.mapfile = mapfile.name
             mapfile.close()
             mapfile.close()
+            os.remove(self.mapfile) # remove empty file
+            
         self.maskfile = self.mapfile.rsplit(".",1)[0] + ".pgm"
         self.maskfile = self.mapfile.rsplit(".",1)[0] + ".pgm"
         
         
         # stores class which manages rendering instead of simple command - e.g. WMS
         # stores class which manages rendering instead of simple command - e.g. WMS