[GRASS-SVN] r54640 - grass/trunk/lib/python/pygrass/vector

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 15 05:10:56 PST 2013


Author: zarch
Date: 2013-01-15 05:10:56 -0800 (Tue, 15 Jan 2013)
New Revision: 54640

Modified:
   grass/trunk/lib/python/pygrass/vector/geometry.py
Log:
Fix if table exist but it is empty

Modified: grass/trunk/lib/python/pygrass/vector/geometry.py
===================================================================
--- grass/trunk/lib/python/pygrass/vector/geometry.py	2013-01-15 13:10:48 UTC (rev 54639)
+++ grass/trunk/lib/python/pygrass/vector/geometry.py	2013-01-15 13:10:56 UTC (rev 54640)
@@ -203,7 +203,7 @@
             self.c_cats = c_cats
 
         # set the attributes
-        if table and self.line:
+        if table is not None and self.line:
             self.attrs = Attrs(self.line, table, writable)
 
     def is_with_topology(self):



More information about the grass-commit mailing list