[GRASS-SVN] r45317 - grass/branches/develbranch_6/ps/ps.map

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Feb 5 22:31:00 EST 2011


Author: hamish
Date: 2011-02-05 19:31:00 -0800 (Sat, 05 Feb 2011)
New Revision: 45317

Modified:
   grass/branches/develbranch_6/ps/ps.map/ps_clrtbl.c
Log:
discrete raster legend border follows the 'color' sub-instruction

Modified: grass/branches/develbranch_6/ps/ps.map/ps_clrtbl.c
===================================================================
--- grass/branches/develbranch_6/ps/ps.map/ps_clrtbl.c	2011-02-06 01:41:33 UTC (rev 45316)
+++ grass/branches/develbranch_6/ps/ps.map/ps_clrtbl.c	2011-02-06 03:31:00 UTC (rev 45317)
@@ -191,7 +191,11 @@
 		if (center_cols)
 		    fprintf(PS.fp, "mvx ");
 		fprintf(PS.fp, "%.1f ", y + fontsize);
-		fprintf(PS.fp, "B F BW stroke\n");
+/* no border	fprintf(PS.fp, "B CF stroke\n"); */
+/* grey border	fprintf(PS.fp, "B F .247 .247 .247 C 1 W stroke\n"); */
+		fprintf(PS.fp, "B F ");
+		set_ps_color(&ct.color);
+		fprintf(PS.fp, "1 W stroke\n");
 	    }
 	    else
 		/* split the rectangle into NSTEPS horizontal strips and



More information about the grass-commit mailing list