Explorar o código

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 %!s(int64=7) %!d(string=hai) anos
pai
achega
f2cbbb81ae
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 */