From 58bdf9e0e693d638637f0d80351952bc2867c96c Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Mon, 17 May 2021 15:30:49 +0200 Subject: [PATCH] Remove 'goto end' and 'end:' statements. --- src/frontend/plotting/x11.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/frontend/plotting/x11.c b/src/frontend/plotting/x11.c index 6e193f482..d4671c6cb 100644 --- a/src/frontend/plotting/x11.c +++ b/src/frontend/plotting/x11.c @@ -376,13 +376,13 @@ handlekeypressed(Widget w, XtPointer client_data, XEvent *ev, Boolean *continue_ ret = Xget_str_length("ζˆ‘θƒ½εžδΈ‹", &wl, &wh, NULL, DEVDEP(graph).fname, DEVDEP(graph).fsize);*/ if (ret == 1) { fprintf(cp_err, "Error: Could not establish a font for %s\n", DEVDEP(graph).fname); - goto end; } - XWarpPointer(display, None, DEVDEP(graph).window, 0, 0, 0, 0, - keyev->x + (int)(1.2 * wl), - keyev->y); + else { + XWarpPointer(display, None, DEVDEP(graph).window, 0, 0, 0, 0, + keyev->x + (int)(1.2 * wl), + keyev->y); + } #endif -end: PopGraphContext(); } @@ -726,7 +726,9 @@ X11_Text(const char *text, int x, int y, int angle) #ifndef HAVE_LIBXFT if (DEVDEP(currentgraph).isopen) { if (angle != 0) { - fprintf(stderr, " No Xft: angles other than 0 are not supported\n"); + if (ft_ngdebug) + fprintf(stderr, "\nWarning: No Xft: angles other than 0 are not supported\n"); + angle = 0; } XDrawString(display, DEVDEP(currentgraph).window, DEVDEP(currentgraph).gc, x,