Преглед изворни кода

Fixed a flag check

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@45677 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho пре 14 година
родитељ
комит
bdf79a0545
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      raster/r.fill.dir/main.c

+ 1 - 1
raster/r.fill.dir/main.c

@@ -200,7 +200,7 @@ int main(int argc, char **argv)
 
 
     /* mark and count the sinks in each internally drained basin */
     /* mark and count the sinks in each internally drained basin */
     nbasins = dopolys(fd, fm, nrows, ncols);
     nbasins = dopolys(fd, fm, nrows, ncols);
-    if (flag1->answer == '0') {
+    if (flag1->answer) {
 	/* determine the watershed for each sink */
 	/* determine the watershed for each sink */
 	wtrshed(fm, fd, nrows, ncols, 4);
 	wtrshed(fm, fd, nrows, ncols, 4);