瀏覽代碼

wxGUI: fix 'go to'
(merge from devbr6, https://trac.osgeo.org/grass/changeset/38034)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38035 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 16 年之前
父節點
當前提交
f29974934c
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      gui/wxpython/gui_modules/mapdisp.py

+ 4 - 4
gui/wxpython/gui_modules/mapdisp.py

@@ -767,8 +767,8 @@ class MapFrame(wx.Frame):
             e, n = map(float, self.goTo.GetValue().split(','))
         except ValueError:
             region = self.Map.GetCurrentRegion()
-            self.goTo.SetValue("%.2f, %.2f" % (region['center_northing'],
-                                               region['center_easting']))
+            self.goTo.SetValue("%.2f, %.2f" % (region['center_easting'],
+                                               region['center_northing']))
             return
 
         region = self.Map.GetCurrentRegion()
@@ -892,8 +892,8 @@ class MapFrame(wx.Frame):
         elif self.toggleStatus.GetSelection() == 7: # go to
             self.statusbar.SetStatusText("")
             region = self.Map.GetCurrentRegion()
-            self.goTo.SetValue("%.2f, %.2f" % (region['center_northing'],
-                                              region['center_easting']))
+            self.goTo.SetValue("%.2f, %.2f" % (region['center_easting'],
+                                               region['center_northing']))
             self.goTo.Show()
 
             # disable long help