diff options
author | Tor Lillqvist <tml@iki.fi> | 2003-01-29 03:35:40 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2003-01-29 03:35:40 +0000 |
commit | 2fe33cf8a280ad9bcccc6bc65e411d64609175af (patch) | |
tree | 7cd6d0b70b86c3c6c3d2f11d990f22045706caef /pango/pangowin32.c | |
parent | 22f64c4ebb06ef98ecc8a395cb07170030489b0c (diff) | |
download | pango-2fe33cf8a280ad9bcccc6bc65e411d64609175af.tar.gz |
Break out of loop if char is 0xFFFF. Some fonts have tables terminated
2003-01-29 Tor Lillqvist <tml@iki.fi>
* pango/pangowin32.c (pango_win32_font_calc_coverage): Break out
of loop if char is 0xFFFF. Some fonts have tables terminated like
this.
Diffstat (limited to 'pango/pangowin32.c')
-rw-r--r-- | pango/pangowin32.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pangowin32.c b/pango/pangowin32.c index 5b59dec2..32cc78c1 100644 --- a/pango/pangowin32.c +++ b/pango/pangowin32.c @@ -1355,6 +1355,9 @@ pango_win32_font_calc_coverage (PangoFont *font, ch <= end_count[i]; ch++) { + if (ch == 0xFFFF) + break; + id = *(id_range_offset[i]/2 + (ch - start_count[i]) + &id_range_offset[i]); |