bug fix
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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
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;