[GRASS-SVN] r38035 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jun 23 07:46:48 EDT 2009


Author: martinl
Date: 2009-06-23 07:46:47 -0400 (Tue, 23 Jun 2009)
New Revision: 38035

Modified:
   grass/trunk/gui/wxpython/gui_modules/mapdisp.py
Log:
wxGUI: fix 'go to'
	(merge from devbr6, r38034)


Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2009-06-23 11:43:58 UTC (rev 38034)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2009-06-23 11:46:47 UTC (rev 38035)
@@ -767,8 +767,8 @@
             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 @@
         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



More information about the grass-commit mailing list