From 5a9afe471c21de6af798a7f82ca31ece598f8c2e Mon Sep 17 00:00:00 2001 From: mjw Date: Sun, 30 Jul 2017 10:08:39 +0100 Subject: Fix windows word splitting mjw on IRC pointed out that the windows word splitting code was not checking a return code properly resulting in broken word splitting. --- frontends/windows/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/windows/font.c b/frontends/windows/font.c index 3407ec4e0..75464f992 100644 --- a/frontends/windows/font.c +++ b/frontends/windows/font.c @@ -280,7 +280,7 @@ win32_font_split(const plot_font_style_t *style, length, x, char_offset, - actual_x)) { + actual_x) == NSERROR_OK) { c_off = *char_offset; if (*char_offset == length) { ret = NSERROR_OK; -- cgit v1.2.3