summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormjw <mjw@irc>2017-07-30 09:08:39 (GMT)
committer Vincent Sanders <vince@kyllikki.org>2017-07-30 09:08:39 (GMT)
commit5a9afe471c21de6af798a7f82ca31ece598f8c2e (patch)
tree87470c963ee8cb7bb27124d587f5e16805957a96
parent8bdea3cc7e7838b0d6c2eb33966724ed2138bf89 (diff)
downloadnetsurf-5a9afe471c21de6af798a7f82ca31ece598f8c2e.tar.gz
netsurf-5a9afe471c21de6af798a7f82ca31ece598f8c2e.tar.bz2
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.
-rw-r--r--frontends/windows/font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/windows/font.c b/frontends/windows/font.c
index 3407ec4..75464f9 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;