shithub: freetype+ttf2subf

Download patch

ref: 9a38e3dd35920d2817a301c7d445cf81d4343c77
parent: 2630e54d2aee2785196c8a04fee3e0d8898c04cc
author: Werner Lemberg <[email protected]>
date: Sat Mar 20 15:44:45 EST 2004

* src/cache/ftcmru.c (FTC_MruList_RemoveSelection): Handle a NULL
value for `selection' as `select all'.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-20  Steve Hartwell  <[email protected]>
+
+	* src/cache/ftcmru.c (FTC_MruList_RemoveSelection): Handle a NULL
+	value for `selection' as `select all'.
+
 2004-03-19  Steve Hartwell  <[email protected]>
 
 	* src/sfnt/ttload.c (tt_face_load_sfnt_header): Reject face_index
--- a/src/cache/ftcmru.c
+++ b/src/cache/ftcmru.c
@@ -330,7 +330,7 @@
 
 
     first = list->nodes;
-    while ( first && selection( first, key ) )
+    while ( first && ( selection == NULL || selection( first, key ) ) )
     {
       FTC_MruList_Remove( list, first );
       first = list->nodes;