Procházet zdrojové kódy

avoid uninit'd variable (merge from devbr6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47693 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman před 13 roky
rodič
revize
4a303eca57
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      ps/ps.map/ps_fclrtbl.c

+ 4 - 4
ps/ps.map/ps_fclrtbl.c

@@ -281,9 +281,9 @@ int PS_fcolortable(void)
 	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 @@ int PS_fcolortable(void)
 	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;