[GRASS-SVN] r36839 - grass/branches/releasebranch_6_4/lib/vector/dglib

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 21 07:03:43 EDT 2009


Author: mmetz
Date: 2009-04-21 07:03:43 -0400 (Tue, 21 Apr 2009)
New Revision: 36839

Modified:
   grass/branches/releasebranch_6_4/lib/vector/dglib/sp-template.c
Log:
backport fix for dglib BUG1 ticket #224 to 6.4

Modified: grass/branches/releasebranch_6_4/lib/vector/dglib/sp-template.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/vector/dglib/sp-template.c	2009-04-21 10:56:21 UTC (rev 36838)
+++ grass/branches/releasebranch_6_4/lib/vector/dglib/sp-template.c	2009-04-21 11:03:43 UTC (rev 36839)
@@ -368,6 +368,17 @@
 	else if (pgraph->iErrno != DGL_ERR_TailNodeNotFound) {
 	    goto sp_error;
 	}
+	/*
+	 * reset visited status for existing cache: fix for BUG1
+	 */
+	if (pCache->pvVisited) {
+	    avl_destroy(pCache->pvVisited, dglTreeTouchI32Cancel);
+
+	    if ((pCache->pvVisited =
+		avl_create(dglTreeTouchI32Compare, NULL,
+			dglTreeGetAllocator())) == NULL)
+		return -1;
+	}
     }
 
     /*



More information about the grass-commit mailing list