[GRASS-SVN] r51805 - grass/trunk/gui/wxpython/nviz

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 26 13:12:16 EDT 2012


Author: annakrat
Date: 2012-05-26 10:12:16 -0700 (Sat, 26 May 2012)
New Revision: 51805

Modified:
   grass/trunk/gui/wxpython/nviz/mapwindow.py
Log:
wxNviz: when there are no points, don't load them

Modified: grass/trunk/gui/wxpython/nviz/mapwindow.py
===================================================================
--- grass/trunk/gui/wxpython/nviz/mapwindow.py	2012-05-26 16:38:55 UTC (rev 51804)
+++ grass/trunk/gui/wxpython/nviz/mapwindow.py	2012-05-26 17:12:16 UTC (rev 51805)
@@ -1300,7 +1300,7 @@
                     #             vecType.append(v)
                     layer = self.tree.GetPyData(item)[0]['maplayer']
                     npoints, nlines, nfeatures, mapIs3D = self.lmgr.nviz.VectorInfo(layer)
-                    if npoints > 0 or mapIs3D:
+                    if npoints > 0:
                         self.LoadVector(item, points = True)
                     if nlines > 0 or mapIs3D:
                         self.LoadVector(item, points = False)



More information about the grass-commit mailing list