[GRASS-SVN] r29891 - grass/trunk/raster/r.univar2
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 29 05:50:57 EST 2008
Author: martinl
Date: 2008-01-29 05:50:56 -0500 (Tue, 29 Jan 2008)
New Revision: 29891
Modified:
grass/trunk/raster/r.univar2/r3.univar_main.c
Log:
Fix bug from the last change (r3.univar)
Modified: grass/trunk/raster/r.univar2/r3.univar_main.c
===================================================================
--- grass/trunk/raster/r.univar2/r3.univar_main.c 2008-01-29 08:05:46 UTC (rev 29890)
+++ grass/trunk/raster/r.univar2/r3.univar_main.c 2008-01-29 10:50:56 UTC (rev 29891)
@@ -116,7 +116,7 @@
i = 0;
while(param.percentile->answers[i])
i++;
- stats = create_univar_stat_struct(map_type, cols * rows, i);
+ stats = create_univar_stat_struct(map_type, cols * rows * depths, i);
for(i = 0; i < stats->n_perc; i++) {
sscanf(param.percentile->answers[i], "%i", &stats->perc[i]);
}
More information about the grass-commit
mailing list