[GRASS-SVN] r38302 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 8 02:07:21 EDT 2009
Author: martinl
Date: 2009-07-08 02:07:20 -0400 (Wed, 08 Jul 2009)
New Revision: 38302
Modified:
grass/trunk/gui/wxpython/gui_modules/mapdisp.py
grass/trunk/gui/wxpython/gui_modules/preferences.py
Log:
wxGUI: fix mapdisplay statusbar coordinates formating
precision default 2
Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp.py 2009-07-08 05:41:06 UTC (rev 38301)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp.py 2009-07-08 06:07:20 UTC (rev 38302)
@@ -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/trunk/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/preferences.py 2009-07-08 05:41:06 UTC (rev 38301)
+++ grass/trunk/gui/wxpython/gui_modules/preferences.py 2009-07-08 06:07:20 UTC (rev 38302)
@@ -124,7 +124,7 @@
},
'format' : {
'll' : 'DMS',
- 'precision' : 6,
+ 'precision' : 2,
},
},
#
More information about the grass-commit
mailing list