浏览代码

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 年之前
父节点
当前提交
f2cbbb81ae
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 */