[GRASS-dev] Re: [GRASS-SVN] r41653 - grass/trunk/raster/r.drain
Markus Neteler
neteler at osgeo.org
Fri Apr 2 17:29:09 EDT 2010
Colin,
is this to be backported?
Markus
On Fri, Apr 2, 2010 at 12:14 AM, <svn_grass at osgeo.org> wrote:
> Author: cnielsen
> Date: 2010-04-01 18:14:53 -0400 (Thu, 01 Apr 2010)
> New Revision: 41653
>
> Modified:
> grass/trunk/raster/r.drain/main.c
> grass/trunk/raster/r.drain/r.drain.html
> Log:
> Missing inits caused infinite loop
>
> Modified: grass/trunk/raster/r.drain/main.c
> ===================================================================
> --- grass/trunk/raster/r.drain/main.c 2010-04-01 21:28:05 UTC (rev 41652)
> +++ grass/trunk/raster/r.drain/main.c 2010-04-01 22:14:53 UTC (rev 41653)
> @@ -642,7 +642,7 @@
> * read next. This is repeated via a while loop until a null direction is found.
> */
>
> - int neighbour, next_row, next_col, go = 1;
> + int neighbour, row, col, next_row, next_col, go = 1;
> DCELL direction;
> DCELL *dir_buf;
>
>
> Modified: grass/trunk/raster/r.drain/r.drain.html
> ===================================================================
> --- grass/trunk/raster/r.drain/r.drain.html 2010-04-01 21:28:05 UTC (rev 41652)
> +++ grass/trunk/raster/r.drain/r.drain.html 2010-04-01 22:14:53 UTC (rev 41653)
> @@ -162,8 +162,8 @@
> according to one of the <b>-can</b> flags.
> <div class="code"><pre>
> The directions are recorded as GRASS standard directions:
> - 112.5 90 67.5 i.e. a cell with the value 135
> -157.5 135 0 45 22.5 means the cell <b>before</b> it is
> + 112.5 67.5 i.e. a cell with the value 135
> +157.5 135 90 45 22.5 means the cell <b>before</b> it is
> 180 x 0 to the south-east.
> 202.5 225 270 315 337.5
> 247.5 292.5
>
> _______________________________________________
> grass-commit mailing list
> grass-commit at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-commit
>
More information about the grass-dev
mailing list