summaryrefslogtreecommitdiff
path: root/librsvg
diff options
context:
space:
mode:
authorArik Devens <arik@src.gnome.org>2001-01-31 23:20:37 +0000
committerArik Devens <arik@src.gnome.org>2001-01-31 23:20:37 +0000
commitec198c1242d78939682984fab89671aee7cbfeb4 (patch)
tree33b283a4254eac70b8eca788dbaf8363a3802313 /librsvg
parent140b9c15b1233ae0b27e60cef1909488a2576da0 (diff)
downloadnautilus-ec198c1242d78939682984fab89671aee7cbfeb4.tar.gz
Updated insert function to evict everytime we are above the cache 'limit' not just when adding the glyph would put us above.
Diffstat (limited to 'librsvg')
-rw-r--r--librsvg/rsvg-ft.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/librsvg/rsvg-ft.c b/librsvg/rsvg-ft.c
index c2a24ac6b..f551d38c9 100644
--- a/librsvg/rsvg-ft.c
+++ b/librsvg/rsvg-ft.c
@@ -264,8 +264,7 @@ rsvg_ft_glyph_insert (RsvgFTCtx *ctx, const RsvgFTGlyphDesc *desc,
ctx->glyph_bytes += rsvg_ft_glyph_bytes (glyph);
- if ((ctx->glyph_bytes < ctx->glyph_bytes_max) &&
- (ctx->glyph_bytes + rsvg_ft_glyph_bytes (glyph) >= ctx->glyph_bytes_max)) {
+ if (ctx->glyph_bytes + rsvg_ft_glyph_bytes (glyph) >= ctx->glyph_bytes_max) {
rsvg_ft_glyph_evict (ctx, ctx->glyph_bytes + rsvg_ft_glyph_bytes (glyph) - ctx->glyph_bytes_max);
}