[GRASS-SVN] r55750 - grass/branches/develbranch_6/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Apr 13 07:22:48 PDT 2013


Author: mmetz
Date: 2013-04-13 07:22:47 -0700 (Sat, 13 Apr 2013)
New Revision: 55750

Modified:
   grass/branches/develbranch_6/lib/vector/Vlib/cindex.c
Log:
Vlib: fix #740 (backport from trunk)

Modified: grass/branches/develbranch_6/lib/vector/Vlib/cindex.c
===================================================================
--- grass/branches/develbranch_6/lib/vector/Vlib/cindex.c	2013-04-13 14:22:12 UTC (rev 55749)
+++ grass/branches/develbranch_6/lib/vector/Vlib/cindex.c	2013-04-13 14:22:47 UTC (rev 55750)
@@ -363,11 +363,12 @@
     }
 
     do {
-	if (!(ci->cat[idx][1] & type_mask)
-	    || ci->cat[idx][0] != cat) {
+	if (ci->cat[idx][0] != cat) {
 	    break;
 	}
-	Vect_list_append(lines, ci->cat[idx][2]);
+	if (ci->cat[idx][1] & type_mask) {
+	    Vect_list_append(lines, ci->cat[idx][2]);
+	}
 	idx++;
     } while (idx < ci->n_cats);
     return;



More information about the grass-commit mailing list