瀏覽代碼

wxGUI/mapdisp: write GRASS_REGION to env file

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47070 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 年之前
父節點
當前提交
1285942c36
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      gui/wxpython/gui_modules/render.py

+ 2 - 1
gui/wxpython/gui_modules/render.py

@@ -895,7 +895,8 @@ class Map(object):
                     [self.maskfileCmd],
                     ['1.0'])
         
-        os.environ["GRASS_REGION"] = self.SetRegion(windres)
+        region = os.environ["GRASS_REGION"] = self.SetRegion(windres)
+        self._writeEnvFile({'GRASS_REGION' : region})
         currMon = grass.gisenv()['MONITOR']
         if currMon != self.monitor:
             gcmd.RunCommand('g.gisenv',