* src/cache/ftcsbits.c (ftc_sbit_node_compare): Only add `size' if there is no error. Reported by Knut St. Osmundsen <bird-freetype@anduin.net>.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
diff --git a/ChangeLog b/ChangeLog
index 5958700..748d7c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-07-01 Werner Lemberg <wl@gnu.org>
+
+ * src/cache/ftcsbits.c (ftc_sbit_node_compare): Only add `size' if
+ there is no error. Reported by Knut St. Osmundsen
+ <bird-freetype@anduin.net>.
+
2003-06-30 Werner Lemberg <wl@gnu.org>
A new try to synchronize bitmap font access.
diff --git a/src/cache/ftcsbits.c b/src/cache/ftcsbits.c
index 7578ef8..2faf80f 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;
}
}