浏览代码

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 年之前
父节点
当前提交
a190c276f1
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)