[GRASS-SVN] r49377 - grass/trunk/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Nov 27 07:09:24 EST 2011
Author: annakrat
Date: 2011-11-27 04:09:23 -0800 (Sun, 27 Nov 2011)
New Revision: 49377
Modified:
grass/trunk/gui/wxpython/core/workspace.py
Log:
wxNviz: zexag value must be saved as float
Modified: grass/trunk/gui/wxpython/core/workspace.py
===================================================================
--- grass/trunk/gui/wxpython/core/workspace.py 2011-11-27 00:43:44 UTC (rev 49376)
+++ grass/trunk/gui/wxpython/core/workspace.py 2011-11-27 12:09:23 UTC (rev 49377)
@@ -484,7 +484,7 @@
node_zexag = node_view.find('z-exag')
view['z-exag'] = {}
iview['z-exag'] = {}
- view['z-exag']['value'] = self.__processLayerNvizNode(node_zexag, 'value', int)
+ view['z-exag']['value'] = self.__processLayerNvizNode(node_zexag, 'value', float)
view['z-exag']['min'] = self.__processLayerNvizNode(node_zexag, 'min', int)
view['z-exag']['max'] = self.__processLayerNvizNode(node_zexag, 'max', int)
iview['z-exag']['original'] = self.__processLayerNvizNode(node_zexag, 'original', float)
@@ -919,10 +919,10 @@
# z-exag
self.file.write('%s<z-exag>\n' % (' ' * self.indent))
self.indent += 4
- self.file.write('%s<value>%d</value>\n' % (' ' * self.indent, view['z-exag']['value']))
+ self.file.write('%s<value>%.2f</value>\n' % (' ' * self.indent, view['z-exag']['value']))
self.file.write('%s<min>%d</min>\n' % (' ' * self.indent, view['z-exag']['min']))
self.file.write('%s<max>%d</max>\n' % (' ' * self.indent, view['z-exag']['max']))
- self.file.write('%s<original>%d</original>\n' % (' ' * self.indent, iview['z-exag']['original']))
+ self.file.write('%s<original>%.2f</original>\n' % (' ' * self.indent, iview['z-exag']['original']))
self.indent -= 4
self.file.write('%s</z-exag>\n' % (' ' * self.indent))
# focus (look here)
More information about the grass-commit
mailing list