[GRASS-SVN] r60300 - grass/trunk/gui/wxpython/mapwin

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 17 15:31:22 PDT 2014


Author: annakrat
Date: 2014-05-17 15:31:22 -0700 (Sat, 17 May 2014)
New Revision: 60300

Modified:
   grass/trunk/gui/wxpython/mapwin/buffered.py
Log:
wxGUI/mapwindow: fix #2277

Modified: grass/trunk/gui/wxpython/mapwin/buffered.py
===================================================================
--- grass/trunk/gui/wxpython/mapwin/buffered.py	2014-05-17 22:16:48 UTC (rev 60299)
+++ grass/trunk/gui/wxpython/mapwin/buffered.py	2014-05-17 22:31:22 UTC (rev 60300)
@@ -1396,12 +1396,13 @@
             else:
                 south = coordinates[1]
                 north = coordinatesBegin[1]
-                
+
+            region = self.Map.GetRegion()
             RunCommand('g.region',
-                       parent = self,
-                       flags = 'a',
-                       n = north, s = south, e = east, w = west)
-            
+                       parent=self,
+                       flags='a', nsres=region['nsres'], ewres=region['ewres'],
+                       n=north, s=south, e=east, w=west)
+
             # redraw map
             self.UpdateMap(render = False)
         



More information about the grass-commit mailing list