From 12d3fef9352565d621392a23aa71a577b94eca64 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 11 Oct 2004 02:17:21 +0000 Subject: [PATCH] (ft_list): Fix previous change. --- src/font-ft.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/font-ft.c b/src/font-ft.c index 389531d..d171775 100644 --- a/src/font-ft.c +++ b/src/font-ft.c @@ -908,10 +908,10 @@ ft_list (MFrame *frame, MPlist *plist, MFont *font, MSymbol language, && FcLangSetHasLang (ft_info->langset, lang) != FcLangEqual) continue; #endif - mplist_push (plist, MPLIST_KEY (pl), &ft_info->font); + mplist_add (plist, MPLIST_KEY (pl), &ft_info->font); num++; if (num == maxnum) - break; + return num; } if (family != Mnil) break; @@ -929,7 +929,7 @@ ft_list (MFrame *frame, MPlist *plist, MFont *font, MSymbol language, && FcLangSetHasLang (ft_info->langset, lang) != FcLangEqual) continue; #endif - mplist_push (plist, MPLIST_KEY (p), &ft_info->font); + mplist_add (plist, MPLIST_KEY (p), &ft_info->font); num++; if (num == maxnum) break; -- 1.7.10.4