[GRASS-SVN] r55745 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Apr 13 05:17:00 PDT 2013
Author: mmetz
Date: 2013-04-13 05:17:00 -0700 (Sat, 13 Apr 2013)
New Revision: 55745
Modified:
grass/trunk/lib/vector/Vlib/cindex.c
Log:
Vlib: fix #740
Modified: grass/trunk/lib/vector/Vlib/cindex.c
===================================================================
--- grass/trunk/lib/vector/Vlib/cindex.c 2013-04-13 11:58:39 UTC (rev 55744)
+++ grass/trunk/lib/vector/Vlib/cindex.c 2013-04-13 12:17:00 UTC (rev 55745)
@@ -364,11 +364,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