[GRASS-SVN] r56540 - grass/branches/releasebranch_6_4/gui/wxpython/nviz

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jun 1 10:17:06 PDT 2013


Author: annakrat
Date: 2013-06-01 10:17:05 -0700 (Sat, 01 Jun 2013)
New Revision: 56540

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/nviz/tools.py
Log:
wxNviz: limit perspective values (merge from trunk, r56514)

Modified: grass/branches/releasebranch_6_4/gui/wxpython/nviz/tools.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/nviz/tools.py	2013-06-01 17:14:33 UTC (rev 56539)
+++ grass/branches/releasebranch_6_4/gui/wxpython/nviz/tools.py	2013-06-01 17:17:05 UTC (rev 56540)
@@ -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