Ver código fonte

wxGUI/mapwindow: fix https://trac.osgeo.org/grass/ticket/2277

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60300 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 11 anos atrás
pai
commit
befdccf149
1 arquivos alterados com 6 adições e 5 exclusões
  1. 6 5
      gui/wxpython/mapwin/buffered.py

+ 6 - 5
gui/wxpython/mapwin/buffered.py

@@ -1396,12 +1396,13 @@ class BufferedMapWindow(MapWindowBase, wx.Window):
             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)