summaryrefslogtreecommitdiff
path: root/fitz/dev_text.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/dev_text.c')
-rw-r--r--fitz/dev_text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/dev_text.c b/fitz/dev_text.c
index 1f88818d..e9d18bb3 100644
--- a/fitz/dev_text.c
+++ b/fitz/dev_text.c
@@ -1365,7 +1365,7 @@ insert_line_height(line_heights *lh, fz_text_style *style, float height)
#endif
/* If we have one already, add it in */
- for (i=0; i < lh->cap; i++)
+ for (i=0; i < lh->len; i++)
{
/* Match if we are within 5% */
if (lh->lh[i].style == style && lh->lh[i].height * 0.95 <= height && lh->lh[i].height * 1.05 >= height)