[GRASS-SVN] r72733 - grass/trunk/raster/r.cost

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 23 00:17:21 PDT 2018


Author: mmetz
Date: 2018-05-23 00:17:20 -0700 (Wed, 23 May 2018)
New Revision: 72733

Modified:
   grass/trunk/raster/r.cost/main.c
Log:
r.cost: fix direction output when using a solver and directions are degree

Modified: grass/trunk/raster/r.cost/main.c
===================================================================
--- grass/trunk/raster/r.cost/main.c	2018-05-22 17:28:38 UTC (rev 72732)
+++ grass/trunk/raster/r.cost/main.c	2018-05-23 07:17:20 UTC (rev 72733)
@@ -1158,7 +1158,7 @@
 		    }
 		}
 
-		if (equal) {
+		if (dir_bin && equal) {
 		    /* this can create circular paths:
 		     * set only if current cell does not point to neighbor
 		     * does not avoid longer circular paths */



More information about the grass-commit mailing list