[GRASS-SVN] r53768 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Nov 10 15:35:30 PST 2012
Author: mmetz
Date: 2012-11-10 15:35:30 -0800 (Sat, 10 Nov 2012)
New Revision: 53768
Modified:
grass/trunk/lib/vector/Vlib/merge_lines.c
Log:
Vlib: clean up code
Modified: grass/trunk/lib/vector/Vlib/merge_lines.c
===================================================================
--- grass/trunk/lib/vector/Vlib/merge_lines.c 2012-11-10 21:03:53 UTC (rev 53767)
+++ grass/trunk/lib/vector/Vlib/merge_lines.c 2012-11-10 23:35:30 UTC (rev 53768)
@@ -28,14 +28,16 @@
{
int i, j;
- if (ACats->n_cats == 0 && BCats->n_cats == 0)
- return 0;
+ if (ACats->n_cats == 0 || BCats->n_cats == 0) {
+ if (ACats->n_cats == 0 && BCats->n_cats == 0)
+ return 0;
- if (ACats->n_cats == 0 && BCats->n_cats > 0)
- return 1;
+ if (ACats->n_cats == 0 && BCats->n_cats > 0)
+ return 1;
- if (ACats->n_cats > 0 && BCats->n_cats == 0)
- return 1;
+ if (ACats->n_cats > 0 && BCats->n_cats == 0)
+ return 1;
+ }
for (i = 0; i < ACats->n_cats; i++) {
int found = 0;
More information about the grass-commit
mailing list