[GRASS-SVN] r56492 - grass/trunk/gui/wxpython/nviz
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 29 11:08:46 PDT 2013
Author: annakrat
Date: 2013-05-29 11:08:46 -0700 (Wed, 29 May 2013)
New Revision: 56492
Modified:
grass/trunk/gui/wxpython/nviz/tools.py
Log:
wxGUI/nviz: fix starting 3D when no map loaded
Modified: grass/trunk/gui/wxpython/nviz/tools.py
===================================================================
--- grass/trunk/gui/wxpython/nviz/tools.py 2013-05-29 17:07:55 UTC (rev 56491)
+++ grass/trunk/gui/wxpython/nviz/tools.py 2013-05-29 18:08:46 UTC (rev 56492)
@@ -129,6 +129,8 @@
"""!Set initial raster and vector map"""
for ltype in ('raster', 'vector', '3d-raster'):
selectedLayer = self.parent.GetLayerTree().GetSelectedLayer(multi = False, checkedOnly = True)
+ if selectedLayer is None:
+ continue
selectedLayer = self.parent.GetLayerTree().GetLayerInfo(selectedLayer, key = 'maplayer')
layers = self.mapWindow.Map.GetListOfLayers(ltype = ltype, active = True)
if selectedLayer in layers:
More information about the grass-commit
mailing list