[GRASS-dev] r.flow with barrier fails
Jáchym Čepický
jachym.cepicky at gmail.com
Tue Feb 20 02:53:16 EST 2007
hi glynn,
2007/2/19, Glynn Clements <glynn at gclements.plus.com>:
> >[...]
> Probably this:
>
> --- raster/r.flow/io.c 7 Feb 2007 05:24:40 -0000 1.14
> +++ raster/r.flow/io.c 19 Feb 2007 18:18:41 -0000
> @@ -126,7 +126,7 @@
> for (col = 0; col < region.cols; col++)
> {
> BM_set(bitbar, col, row, (barc[col] != 0));
> - if (barc[col] != 0)
> + if (ds.buf && barc[col] != 0)
> put(ds, row, col, -1);
> }
> }
This makes it not to segfault, but it does not make r.flow work properly
thanks
jachym
--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
More information about the grass-dev
mailing list