From 3d6ad172a89ac663b4c2cc097dbcc9f7b7b5769f Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Wed, 2 Jul 2003 15:03:36 +0000 Subject: [PATCH] * src/cache/ftcsbits.c (ftc_sbit_node_compare): Only add `size' if there is no error. Reported by Knut St. Osmundsen . --- ChangeLog | 6 ++++++ src/cache/ftcsbits.c | 13 +++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 595870061..748d7c762 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-07-01 Werner Lemberg + + * src/cache/ftcsbits.c (ftc_sbit_node_compare): Only add `size' if + there is no error. Reported by Knut St. Osmundsen + . + 2003-06-30 Werner Lemberg A new try to synchronize bitmap font access. diff --git a/src/cache/ftcsbits.c b/src/cache/ftcsbits.c index 7578ef8c2..2faf80f33 100644 --- a/src/cache/ftcsbits.c +++ b/src/cache/ftcsbits.c @@ -308,14 +308,11 @@ FT_ULong size; - /* yes, it's safe to ignore errors here */ - ftc_sbit_node_load( snode, - cache->manager, - FTC_SBIT_FAMILY( FTC_QUERY( squery )->family ), - gindex, - &size ); - - cache->manager->cur_weight += size; + if ( !ftc_sbit_node_load( + snode, cache->manager, + FTC_SBIT_FAMILY( FTC_QUERY( squery )->family ), + gindex, &size ) ) + cache->manager->cur_weight += size; } }