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.
This commit is contained in:
mjw 2017-07-30 10:08:39 +01:00 committed by Vincent Sanders
parent 8bdea3cc7e
commit 5a9afe471c

View File

@ -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;