[GRASS-SVN] r38303 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 8 02:08:23 EDT 2009
Author: martinl
Date: 2009-07-08 02:08:22 -0400 (Wed, 08 Jul 2009)
New Revision: 38303
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
Log:
wxGUI: fix mapdisplay statusbar coordinates formating
precision default 2
(merge from trunk, r38302)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py 2009-07-08 06:07:20 UTC (rev 38302)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py 2009-07-08 06:08:22 UTC (rev 38303)
@@ -989,8 +989,10 @@
precision, s, precision, n), 0)
else:
ewres, nsres = region['ewres'], region['nsres']
- self.statusbar.SetStatusText("%s - %s, %s - %s (%s, %s)" %
- (w, e, s, n, ewres, nsres), 0)
+ self.statusbar.SetStatusText("%.*f - %.*f, %.*f - %.*f (%.*f, %.*f)" %
+ (precision, w, precision, e,
+ precision, s, precision, n,
+ precision, ewres, precision, nsres), 0)
# enable long help
self.StatusbarEnableLongHelp()
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py 2009-07-08 06:07:20 UTC (rev 38302)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py 2009-07-08 06:08:22 UTC (rev 38303)
@@ -124,7 +124,7 @@
},
'format' : {
'll' : 'DMS',
- 'precision' : 6,
+ 'precision' : 2,
},
},
#
More information about the grass-commit
mailing list