Jelajahi Sumber

Fix if table exist but it is empty

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54640 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 12 tahun lalu
induk
melakukan
4f7f8c9ba3
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      lib/python/pygrass/vector/geometry.py

+ 1 - 1
lib/python/pygrass/vector/geometry.py

@@ -203,7 +203,7 @@ class Geo(object):
             self.c_cats = c_cats
             self.c_cats = c_cats
 
 
         # set the attributes
         # set the attributes
-        if table and self.line:
+        if table is not None and self.line:
             self.attrs = Attrs(self.line, table, writable)
             self.attrs = Attrs(self.line, table, writable)
 
 
     def is_with_topology(self):
     def is_with_topology(self):