[GRASS-SVN] r49379 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 27 07:18:19 EST 2011


Author: annakrat
Date: 2011-11-27 04:18:19 -0800 (Sun, 27 Nov 2011)
New Revision: 49379

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/workspace.py
Log:
wxNviz: zexag value must be saved as float (merge from trunk, r49377)

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/workspace.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/workspace.py	2011-11-27 12:14:24 UTC (rev 49378)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/workspace.py	2011-11-27 12:18:19 UTC (rev 49379)
@@ -479,7 +479,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)
@@ -1202,10 +1202,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