[GRASS-SVN] r44067 - grass/branches/releasebranch_6_4/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 28 07:11:16 EDT 2010


Author: mmetz
Date: 2010-10-28 04:11:16 -0700 (Thu, 28 Oct 2010)
New Revision: 44067

Modified:
   grass/branches/releasebranch_6_4/lib/vector/Vlib/net.c
Log:
activate dglib cache

Modified: grass/branches/releasebranch_6_4/lib/vector/Vlib/net.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/vector/Vlib/net.c	2010-10-28 11:10:21 UTC (rev 44066)
+++ grass/branches/releasebranch_6_4/lib/vector/Vlib/net.c	2010-10-28 11:11:16 UTC (rev 44067)
@@ -486,22 +486,22 @@
 
     pclip = NULL;
     if (List != NULL) {
-	/* nRet =
+	nRet =
 	    dglShortestPath(&(Map->graph), &pSPReport, (dglInt32_t) from,
-			    (dglInt32_t) to, clipper, pclip, &(Map->spCache)); */
+			    (dglInt32_t) to, clipper, pclip, &(Map->spCache));
 	/* comment out belwo and uncomment above to debug dglib cache */
-	nRet =
+	/* nRet =
 	    dglShortestPath(&(Map->graph), &pSPReport, (dglInt32_t) from,
-			    (dglInt32_t) to, clipper, pclip, NULL);
+			    (dglInt32_t) to, clipper, pclip, NULL); */
     }
     else {
-	/* nRet =
+	nRet =
 	    dglShortestDistance(&(Map->graph), &nDistance, (dglInt32_t) from,
-				(dglInt32_t) to, clipper, pclip, &(Map->spCache)); */
+				(dglInt32_t) to, clipper, pclip, &(Map->spCache));
 	/* comment out belwo and uncomment above to debug dglib cache */
-	nRet =
+	/* nRet =
 	    dglShortestDistance(&(Map->graph), &nDistance, (dglInt32_t) from,
-				(dglInt32_t) to, clipper, pclip, NULL);
+				(dglInt32_t) to, clipper, pclip, NULL); */
     }
 
     if (nRet == 0) {



More information about the grass-commit mailing list