[GRASS-SVN] r47693 - grass/trunk/ps/ps.map
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 17 08:18:45 EDT 2011
Author: hamish
Date: 2011-08-17 05:18:44 -0700 (Wed, 17 Aug 2011)
New Revision: 47693
Modified:
grass/trunk/ps/ps.map/ps_fclrtbl.c
Log:
avoid uninit'd variable (merge from devbr6)
Modified: grass/trunk/ps/ps.map/ps_fclrtbl.c
===================================================================
--- grass/trunk/ps/ps.map/ps_fclrtbl.c 2011-08-17 12:17:37 UTC (rev 47692)
+++ grass/trunk/ps/ps.map/ps_fclrtbl.c 2011-08-17 12:18:44 UTC (rev 47693)
@@ -281,9 +281,9 @@
case 2:
/* directly above the tick numbers */
if (ct.tickbar)
- xu += x1 + 0.2 * fontsize;
+ xu = x1 + 0.2 * fontsize;
else
- xu += x2 + 0.2 * fontsize;
+ xu = x2 + 0.2 * fontsize;
yu = t + 0.05*72;
label_xref = LEFT;
label_yref = LOWER;
@@ -302,9 +302,9 @@
case 4:
/* directly below the tick numbers */
if (ct.tickbar)
- xu += x1 + 0.2 * fontsize;
+ xu = x1 + 0.2 * fontsize;
else
- xu += x2 + 0.2 * fontsize;
+ xu = x2 + 0.2 * fontsize;
yu = t - height - 0.05*72;
label_xref = LEFT;
label_yref = UPPER;
More information about the grass-commit
mailing list