[GRASS-SVN] r51807 - grass/branches/develbranch_6/gui/wxpython/nviz

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 26 10:16:14 PDT 2012


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

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

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