summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2009-03-01 12:14:27 +0000
committerKim Woelders <kim@woelders.dk>2009-03-01 12:14:27 +0000
commit9686658a3cea3b81cbed60424cadc29374c2ed09 (patch)
treec35d275a09121e53c55ee7267b10912e55e23203
parenta7b230a6f8b2b80f341b1100a88d1aef23a7c3f3 (diff)
downloadimlib2-9686658a3cea3b81cbed60424cadc29374c2ed09.tar.gz
Fix imlib_font_query_size width calculation when there are undefined
codepoints (ticket 230). SVN revision: 39306
-rw-r--r--src/lib/font_query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/font_query.c b/src/lib/font_query.c
index a92c768..8c16a33 100644
--- a/src/lib/font_query.c
+++ b/src/lib/font_query.c
@@ -61,7 +61,7 @@ imlib_font_query_size(ImlibFont * fn, const char *text, int *w, int *h)
chr_y = (pen_y >> 8) + fg->glyph_out->top;
chr_w = fg->glyph_out->bitmap.width;
- if (!prev_index)
+ if (pen_x == 0)
start_x = chr_x;
if ((chr_x + chr_w) > end_x)
end_x = chr_x + chr_w;