[GRASS-SVN] r48688 - grass-addons/raster/r.viewshed

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 9 08:33:44 EDT 2011


Author: mmetz
Date: 2011-10-09 05:33:44 -0700 (Sun, 09 Oct 2011)
New Revision: 48688

Modified:
   grass-addons/raster/r.viewshed/grass.cc
Log:
fix ncols

Modified: grass-addons/raster/r.viewshed/grass.cc
===================================================================
--- grass-addons/raster/r.viewshed/grass.cc	2011-10-09 10:30:25 UTC (rev 48687)
+++ grass-addons/raster/r.viewshed/grass.cc	2011-10-09 12:33:44 UTC (rev 48688)
@@ -213,7 +213,7 @@
     /*buffer to hold 3 rows */
     G_SURFACE_T **inrast;
     int nrows = G_window_rows();
-    int ncols = G_window_rows();
+    int ncols = G_window_cols();
 
     inrast = (G_SURFACE_T **)G_malloc(3 * sizeof(G_SURFACE_T *));
     assert(inrast);
@@ -442,7 +442,7 @@
     data_type = G_SURFACE_TYPE;
     G_SURFACE_T **inrast;
     int nrows = G_window_rows();
-    int ncols = G_window_rows();
+    int ncols = G_window_cols();
 
     inrast = (G_SURFACE_T **)G_malloc(3 * sizeof(G_SURFACE_T *));
     assert(inrast);



More information about the grass-commit mailing list