[GRASS-SVN] r36110 - grass/branches/develbranch_6/lib/vector/dglib

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Feb 26 10:58:06 EST 2009


Author: mmetz
Date: 2009-02-26 10:58:06 -0500 (Thu, 26 Feb 2009)
New Revision: 36110

Modified:
   grass/branches/develbranch_6/lib/vector/dglib/sp-template.c
Log:
ticket #224: BUG1 fixed in devbr6

Modified: grass/branches/develbranch_6/lib/vector/dglib/sp-template.c
===================================================================
--- grass/branches/develbranch_6/lib/vector/dglib/sp-template.c	2009-02-26 15:57:39 UTC (rev 36109)
+++ grass/branches/develbranch_6/lib/vector/dglib/sp-template.c	2009-02-26 15:58:06 UTC (rev 36110)
@@ -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