[GRASS-SVN] r42805 - grass/trunk/raster/r.terraflow

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jul 16 06:17:14 EDT 2010


Author: mmetz
Date: 2010-07-16 10:17:14 +0000 (Fri, 16 Jul 2010)
New Revision: 42805

Modified:
   grass/trunk/raster/r.terraflow/filldepr.cc
Log:
r.terraflow: backport fix for #1006 from devbr

Modified: grass/trunk/raster/r.terraflow/filldepr.cc
===================================================================
--- grass/trunk/raster/r.terraflow/filldepr.cc	2010-07-16 08:58:24 UTC (rev 42804)
+++ grass/trunk/raster/r.terraflow/filldepr.cc	2010-07-16 10:17:14 UTC (rev 42805)
@@ -128,8 +128,9 @@
   boundaryType* nextedge;
   elevation_type h;
   cclabel_type u, v, ur, vr;
+  off_t nitems = boundaryStr->stream_len();
   boundaryStr->seek(0);
-  for (size_t i=0; i< boundaryStr->stream_len(); i++) {
+  for (size_t i=0; i< nitems; i++) {
 
     /*read next edge*/
     ae = boundaryStr->read_item(&nextedge);



More information about the grass-commit mailing list