Commit 94a8918b8f76a23e1e8e20d26e0b0d195e61f582

David Turner 2004-01-16T09:51:42

bug fix

diff --git a/src/cache/ftcmanag.c b/src/cache/ftcmanag.c
index 8a7b681..8a3cde7 100644
--- a/src/cache/ftcmanag.c
+++ b/src/cache/ftcmanag.c
@@ -96,7 +96,12 @@
     FTC_Scaler  scaler0 = &node->scaler;
 
 
-    return FTC_SCALER_COMPARE( scaler0, scaler );
+    if ( FTC_SCALER_COMPARE( scaler0, scaler ) )
+    {
+      FT_Activate_Size( node->size );
+      return 1;
+    }
+    return 0;
   }
 
 
@@ -161,20 +166,20 @@
       return FTC_Err_Invalid_Cache_Handle;
 
     /* we break encapsulation for the sake of speed */
-    
+
     error = 0;
     FTC_MRULIST_LOOP( &manager->sizes, node )
     {
       FTC_Scaler  scaler0 = &node->scaler;
-      
+
 
       if ( FTC_SCALER_COMPARE( scaler0, scaler ) )
         goto Found;
     }
     FTC_MRULIST_LOOP_END();
-    
+
     error = FTC_MruList_New( &manager->sizes, scaler, (FTC_MruNode*)&node );
-    
+
   Found:
     if ( !error )
       *asize = node->size;
@@ -290,9 +295,9 @@
         goto Found;
     }
     FTC_MRULIST_LOOP_END();
-    
+
     error = FTC_MruList_New( &manager->faces, face_id, (FTC_MruNode*)&node );
-    
+
   Found:
     if ( !error )
       *aface = node->face;