shithub: freetype+ttf2subf

Download patch

ref: 4ee9b7bab13924f49029edf461f75ae740422cfa
parent: 6d798993623602c7877d864b5799424ee17722f3
author: Werner Lemberg <[email protected]>
date: Wed Jul 2 11:03:36 EDT 2003

* src/cache/ftcsbits.c (ftc_sbit_node_compare): Only add `size' if
there is no error.  Reported by Knut St. Osmundsen
<[email protected]>.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-07-01  Werner Lemberg  <[email protected]>
+
+	* src/cache/ftcsbits.c (ftc_sbit_node_compare): Only add `size' if
+	there is no error.  Reported by Knut St. Osmundsen
+	<[email protected]>.
+
 2003-06-30  Werner Lemberg  <[email protected]>
 
 	A new try to synchronize bitmap font access.
--- 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;
       }
     }