summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index 25e0da34..3a9b6983 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -332,7 +332,7 @@ static void initCache_Text_(iText *d) {
332 d->cacheRowAllocStep = iMax(2, textSize / 6); 332 d->cacheRowAllocStep = iMax(2, textSize / 6);
333 /* Allocate initial (empty) rows. These will be assigned actual locations in the cache 333 /* Allocate initial (empty) rows. These will be assigned actual locations in the cache
334 once at least one glyph is stored. */ 334 once at least one glyph is stored. */
335 for (int h = d->cacheRowAllocStep; h <= 2 * textSize; h += d->cacheRowAllocStep) { 335 for (int h = d->cacheRowAllocStep; h <= 2 * textSize + d->cacheRowAllocStep; h += d->cacheRowAllocStep) {
336 pushBack_Array(&d->cacheRows, &(iCacheRow){ .height = 0 }); 336 pushBack_Array(&d->cacheRows, &(iCacheRow){ .height = 0 });
337 } 337 }
338 d->cacheBottom = 0; 338 d->cacheBottom = 0;