Browse Source

r.cost: fix direction output when using a solver and directions are degree

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72733 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 7 years ago
parent
commit
f2cbbb81ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      raster/r.cost/main.c

+ 1 - 1
raster/r.cost/main.c

@@ -1158,7 +1158,7 @@ int main(int argc, char *argv[])
 		    }
 		}
 
-		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 */