[GRASS-SVN] r56610 - grass/trunk/raster/r.patch

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 5 08:01:45 PDT 2013


Author: mmetz
Date: 2013-06-05 08:01:45 -0700 (Wed, 05 Jun 2013)
New Revision: 56610

Modified:
   grass/trunk/raster/r.patch/support.c
Log:
r.patch: do not assign colors of first map to result because the output range might not be covered

Modified: grass/trunk/raster/r.patch/support.c
===================================================================
--- grass/trunk/raster/r.patch/support.c	2013-06-05 14:16:39 UTC (rev 56609)
+++ grass/trunk/raster/r.patch/support.c	2013-06-05 15:01:45 UTC (rev 56610)
@@ -58,7 +58,11 @@
 		    }
 		}
 	}
-	/* else the color will be the color of the first map */
+	else {
+	    /* the color would be the color of the first map,
+	     * possibly not covering the range of the other maps */
+	    *colr_ok = 0;
+	}
 
 	if (do_cats)
 	    Rast_free_cats(&pcats);



More information about the grass-commit mailing list