[GRASS-SVN] r56514 - grass/trunk/gui/wxpython/nviz
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu May 30 08:57:13 PDT 2013
Author: annakrat
Date: 2013-05-30 08:57:12 -0700 (Thu, 30 May 2013)
New Revision: 56514
Modified:
grass/trunk/gui/wxpython/nviz/tools.py
Log:
wxNviz: limit perspective values
Modified: grass/trunk/gui/wxpython/nviz/tools.py
===================================================================
--- grass/trunk/gui/wxpython/nviz/tools.py 2013-05-30 14:51:54 UTC (rev 56513)
+++ grass/trunk/gui/wxpython/nviz/tools.py 2013-05-30 15:57:12 UTC (rev 56514)
@@ -2815,6 +2815,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