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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 26 13:15:22 EDT 2012


Author: annakrat
Date: 2012-05-26 10:15:21 -0700 (Sat, 26 May 2012)
New Revision: 51806

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/nviz/mapwindow.py
Log:
wxNviz: when there are no points, don't load them (merged from trunk, r51805)

Modified: grass/branches/releasebranch_6_4/gui/wxpython/nviz/mapwindow.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/nviz/mapwindow.py	2012-05-26 17:12:16 UTC (rev 51805)
+++ grass/branches/releasebranch_6_4/gui/wxpython/nviz/mapwindow.py	2012-05-26 17:15:21 UTC (rev 51806)
@@ -1295,7 +1295,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