[GRASS-SVN] r30551 - grass/trunk/raster/r.out.gdal
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Mar 13 14:48:33 EDT 2008
Author: glynn
Date: 2008-03-13 14:48:33 -0400 (Thu, 13 Mar 2008)
New Revision: 30551
Modified:
grass/trunk/raster/r.out.gdal/main.c
Log:
Treat default colour table the same as an explicit colour table when
writing palette-based images.
Modified: grass/trunk/raster/r.out.gdal/main.c
===================================================================
--- grass/trunk/raster/r.out.gdal/main.c 2008-03-13 18:33:38 UTC (rev 30550)
+++ grass/trunk/raster/r.out.gdal/main.c 2008-03-13 18:48:33 UTC (rev 30551)
@@ -125,7 +125,7 @@
GDALSetRasterColorInterpretation(hBand, GPI_RGB);
CPLPopErrorHandler();
- if( G_read_colors(name, mapset, &sGrassColors ) == 1 )
+ if( G_read_colors(name, mapset, &sGrassColors ) >= 0 )
{
int maxcolor, i;
CELL min, max;
More information about the grass-commit
mailing list