Browse Source

prevent garbage output of X11 plotting function

pre-master-46
dwarning 6 years ago
committed by Holger Vogt
parent
commit
f12dfc6e7b
  1. 4
      src/frontend/plotting/x11.c

4
src/frontend/plotting/x11.c

@ -742,7 +742,7 @@ X11_Text(const char *text, int x, int y, int angle)
x, currentgraph->absolute.height - y, (FcChar8*)text, strlen(text));
}
else if (angle == 90) {
int wlen, wheight;
int wlen=0, wheight;
/* calculate and add offset, if ylabel with angle 90° */
Xget_str_length(text, &wlen, &wheight, DEVDEP(currentgraph).font90, NULL, 0);
@ -1395,7 +1395,7 @@ Xget_str_length(const char *text, int* wlen, int* wheight, XftFont* gfont, char*
int
X11_GetLenStr(GRAPH *gr, char* instring)
{
int wl, wh;
int wl=0, wh;
Xget_str_length(instring, &wl, &wh, NULL, DEVDEP(gr).fname, DEVDEP(gr).fsize);
return wl;
}

Loading…
Cancel
Save