Browse Source

wxNviz: when there are no points, don't load them

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51805 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 13 years ago
parent
commit
a190c276f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/nviz/mapwindow.py

+ 1 - 1
gui/wxpython/nviz/mapwindow.py

@@ -1300,7 +1300,7 @@ class GLWindow(MapWindow, glcanvas.GLCanvas):
                     #             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)