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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 17 08:17:37 EDT 2011


Author: hamish
Date: 2011-08-17 05:17:37 -0700 (Wed, 17 Aug 2011)
New Revision: 47692

Modified:
   grass/branches/develbranch_6/ps/ps.map/ps_fclrtbl.c
Log:
avoid uninit'd variable

Modified: grass/branches/develbranch_6/ps/ps.map/ps_fclrtbl.c
===================================================================
--- grass/branches/develbranch_6/ps/ps.map/ps_fclrtbl.c	2011-08-17 12:14:44 UTC (rev 47691)
+++ grass/branches/develbranch_6/ps/ps.map/ps_fclrtbl.c	2011-08-17 12:17:37 UTC (rev 47692)
@@ -279,9 +279,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;
@@ -300,9 +300,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