[GRASS-SVN] r56541 - grass/branches/develbranch_6/gui/wxpython/nviz
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jun 1 10:17:32 PDT 2013
Author: annakrat
Date: 2013-06-01 10:17:32 -0700 (Sat, 01 Jun 2013)
New Revision: 56541
Modified:
grass/branches/develbranch_6/gui/wxpython/nviz/tools.py
Log:
wxNviz: limit perspective values (merge from trunk, r56514)
Modified: grass/branches/develbranch_6/gui/wxpython/nviz/tools.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/nviz/tools.py 2013-06-01 17:17:05 UTC (rev 56540)
+++ grass/branches/develbranch_6/gui/wxpython/nviz/tools.py 2013-06-01 17:17:32 UTC (rev 56541)
@@ -2691,6 +2691,10 @@
value = self.FindWindowById(event.GetId()).GetValue()
slider = self.FindWindowById(self.win['view'][winName]['slider'])
+
+ if winName == 'persp' and not (0 <= value <= 180):
+ return
+
self.AdjustSliderRange(slider = slider, value = value)
if winName == 'height':
More information about the grass-commit
mailing list