[GRASS-SVN] r40742 - grass/trunk/ps/ps.map
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 29 16:37:35 EST 2010
Author: glynn
Date: 2010-01-29 16:37:33 -0500 (Fri, 29 Jan 2010)
New Revision: 40742
Modified:
grass/trunk/ps/ps.map/ps_fclrtbl.c
Log:
Fix omission from r40739
Modified: grass/trunk/ps/ps.map/ps_fclrtbl.c
===================================================================
--- grass/trunk/ps/ps.map/ps_fclrtbl.c 2010-01-29 20:30:48 UTC (rev 40741)
+++ grass/trunk/ps/ps.map/ps_fclrtbl.c 2010-01-29 21:37:33 UTC (rev 40742)
@@ -22,7 +22,7 @@
int PS_fcolortable(void)
{
- char buf[512], *ch, units[GNAME_MAX];
+ char buf[512], *ch, *units;
int i, k;
int R, G, B;
DCELL dmin, dmax, val;
@@ -249,8 +249,9 @@
/* print units label, if present */
- if (Rast_read_units(ct.name, ct.mapset, units) != 0)
- units[0] = '\0';
+ units = Rast_read_units(ct.name, ct.mapset);
+ if (!units)
+ units = "";
if(strlen(units)) {
margin = 0.2 * fontsize;
More information about the grass-commit
mailing list