diff options
Diffstat (limited to '')
-rw-r--r-- | libfonts_decode_font_description.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libfonts_decode_font_description.c b/libfonts_decode_font_description.c index 329d338..83cf5c2 100644 --- a/libfonts_decode_font_description.c +++ b/libfonts_decode_font_description.c @@ -118,7 +118,8 @@ fix_charset_subset(char *out, const char *in) saved = ranges[0]; for (i = 1; i < n; i++) { if (ranges[i].first <= saved.last) { - saved.last = ranges[i].last; + if (ranges[i].last > saved.last) + saved.last = ranges[i].last; } else { if (saved.first == saved.last) out += sprintf(out, "%"PRId32" ", saved.first); |