[GRASS-SVN] r39890 - grass/branches/develbranch_6/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Dec 4 02:30:54 EST 2009
Author: glynn
Date: 2009-12-04 02:30:47 -0500 (Fri, 04 Dec 2009)
New Revision: 39890
Modified:
grass/branches/develbranch_6/lib/gis/get_row.c
Log:
Fix bug #369
Modified: grass/branches/develbranch_6/lib/gis/get_row.c
===================================================================
--- grass/branches/develbranch_6/lib/gis/get_row.c 2009-12-04 07:28:18 UTC (rev 39889)
+++ grass/branches/develbranch_6/lib/gis/get_row.c 2009-12-04 07:30:47 UTC (rev 39890)
@@ -1146,7 +1146,8 @@
for (i = 0; i < G__.window.cols; i++)
/* note: using == won't work if the null value is NaN */
- flags[i] = memcmp(&tmp_buf[i], &fcb->gdal->null_val, sizeof(DCELL)) == 0;
+ flags[i] = !fcb->col_map[i] ||
+ memcmp(&tmp_buf[i], &fcb->gdal->null_val, sizeof(DCELL)) == 0;
G_free(tmp_buf);
}
More information about the grass-commit
mailing list