[GRASS-SVN] r56500 - grass/trunk/gui/wxpython/nviz
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 29 15:20:26 PDT 2013
Author: annakrat
Date: 2013-05-29 15:20:25 -0700 (Wed, 29 May 2013)
New Revision: 56500
Modified:
grass/trunk/gui/wxpython/nviz/tools.py
Log:
wxNviz: fix slider range
Modified: grass/trunk/gui/wxpython/nviz/tools.py
===================================================================
--- grass/trunk/gui/wxpython/nviz/tools.py 2013-05-29 21:44:33 UTC (rev 56499)
+++ grass/trunk/gui/wxpython/nviz/tools.py 2013-05-29 22:20:25 UTC (rev 56500)
@@ -4561,7 +4561,7 @@
-xyRange/2., xyRange/2.)
self.FindWindowById(self.win['cplane']['position']['y']['slider']).SetRange(
-xyRange/2., xyRange/2.)
- if zRange[0] - zRange[1] > 0:
+ if zRange[1] - zRange[0] > 1:
self.FindWindowById(self.win['cplane']['position']['z']['slider']).SetRange(zRange[0], zRange[1])
self.FindWindowById(self.win['cplane']['position']['z']['slider']).SetValue(zRange[0])
self.FindWindowById(self.win['cplane']['position']['z']['text']).SetValue(zRange[0])
More information about the grass-commit
mailing list