[GRASS-SVN] r41432 - grass/branches/releasebranch_6_4/raster/r.mfilter

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 14 04:49:11 EDT 2010


Author: neteler
Date: 2010-03-14 04:49:10 -0400 (Sun, 14 Mar 2010)
New Revision: 41432

Modified:
   grass/branches/releasebranch_6_4/raster/r.mfilter/getfilt.c
Log:
Fix bug #999 (zero divisor)

Modified: grass/branches/releasebranch_6_4/raster/r.mfilter/getfilt.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.mfilter/getfilt.c	2010-03-14 07:19:08 UTC (rev 41431)
+++ grass/branches/releasebranch_6_4/raster/r.mfilter/getfilt.c	2010-03-14 08:49:10 UTC (rev 41432)
@@ -84,7 +84,7 @@
 		have_divisor = 1;
 		if (sscanf(buf, "DIVISOR %d", &n) == 1) {
 		    f->divisor = n;
-		    if (n == 0)
+		    if (div == 0)
 			f->dmatrix = f->matrix;
 		    continue;
 		}



More information about the grass-commit mailing list