diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-04-15 14:12:37 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-04-15 14:12:37 +0000 |
| commit | e1c8ba107a92ccc79facb1453d297a9f89ec8dcc (patch) | |
| tree | cddb4357c1c1f1f92b355b06f08eff2fb76ca57b /bk_paper.c | |
| parent | 8100588592f8c84f049870a17e6401646378dc5f (diff) | |
| download | halibut-e1c8ba107a92ccc79facb1453d297a9f89ec8dcc.zip halibut-e1c8ba107a92ccc79facb1453d297a9f89ec8dcc.tar.gz halibut-e1c8ba107a92ccc79facb1453d297a9f89ec8dcc.tar.bz2 halibut-e1c8ba107a92ccc79facb1453d297a9f89ec8dcc.tar.xz | |
Prevent a tight loop. Oops.
[originally from svn r4080]
Diffstat (limited to 'bk_paper.c')
| -rw-r--r-- | bk_paper.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1599,8 +1599,10 @@ static int render_string(page_data *page, font_data *font, int fontsize, while (*str) { glyph = font->bmp[*str]; - if (glyph == 0xFFFF) + if (glyph == 0xFFFF) { + str++; continue; /* nothing more we can do here */ + } /* * Find which subfont this character is going in. |