[GRASS-SVN] r46920 - grass/trunk/lib/vector/diglib
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 1 13:21:51 EDT 2011
Author: mmetz
Date: 2011-07-01 10:21:51 -0700 (Fri, 01 Jul 2011)
New Revision: 46920
Modified:
grass/trunk/lib/vector/diglib/spindex.c
Log:
fix array index
Modified: grass/trunk/lib/vector/diglib/spindex.c
===================================================================
--- grass/trunk/lib/vector/diglib/spindex.c 2011-07-01 13:43:25 UTC (rev 46919)
+++ grass/trunk/lib/vector/diglib/spindex.c 2011-07-01 17:21:51 UTC (rev 46920)
@@ -447,7 +447,7 @@
G_fatal_error(_("Attempt to delete sidx for dead area"));
}
- Line = Plus->Line[Area->lines[0]];
+ Line = Plus->Line[abs(Area->lines[0])];
topo = (struct P_topo_b *)Line->topo;
Node = Plus->Node[topo->N1];
@@ -489,7 +489,7 @@
Isle = Plus->Isle[isle];
- Line = Plus->Line[Isle->lines[0]];
+ Line = Plus->Line[abs(Isle->lines[0])];
topo = (struct P_topo_b *)Line->topo;
Node = Plus->Node[topo->N1];
More information about the grass-commit
mailing list