[GRASS-SVN] r39966 - grass/branches/releasebranch_6_4/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Dec 10 18:03:29 EST 2009
Author: neteler
Date: 2009-12-10 18:03:27 -0500 (Thu, 10 Dec 2009)
New Revision: 39966
Modified:
grass/branches/releasebranch_6_4/lib/gis/get_row.c
Log:
Fix bug #369 (backport)
Modified: grass/branches/releasebranch_6_4/lib/gis/get_row.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/gis/get_row.c 2009-12-10 19:57:41 UTC (rev 39965)
+++ grass/branches/releasebranch_6_4/lib/gis/get_row.c 2009-12-10 23:03:27 UTC (rev 39966)
@@ -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