浏览代码

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 年之前
父节点
当前提交
7a981e4b8b
共有 1 个文件被更改,包括 2 次插入0 次删除
  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
             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