From: handa Date: Mon, 11 Oct 2004 02:17:21 +0000 (+0000) Subject: (ft_list): Fix previous change. X-Git-Tag: REL-1-2-0~135 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=12d3fef9352565d621392a23aa71a577b94eca64;p=m17n%2Fm17n-lib.git (ft_list): Fix previous change. --- 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;