[GRASS-SVN] r56539 - grass/branches/develbranch_6/gui/wxpython/nviz

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jun 1 10:14:33 PDT 2013


Author: annakrat
Date: 2013-06-01 10:14:33 -0700 (Sat, 01 Jun 2013)
New Revision: 56539

Modified:
   grass/branches/develbranch_6/gui/wxpython/nviz/tools.py
Log:
wxNviz: fix slider range (merge from trunk, r56500)

Modified: grass/branches/develbranch_6/gui/wxpython/nviz/tools.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/nviz/tools.py	2013-06-01 17:13:20 UTC (rev 56538)
+++ grass/branches/develbranch_6/gui/wxpython/nviz/tools.py	2013-06-01 17:14:33 UTC (rev 56539)
@@ -4311,7 +4311,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