From e189abc321e7a816649e4d6fe890e4558866e3a5 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 11 Oct 2004 02:17:47 +0000 Subject: [PATCH] (xfont_list): Fix previous change. --- src/m17n-X.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/m17n-X.c b/src/m17n-X.c index d8e8579..376b12a 100644 --- a/src/m17n-X.c +++ b/src/m17n-X.c @@ -922,10 +922,10 @@ xfont_list (MFrame *frame, MPlist *plist, MFont *font, MSymbol language, if (! font) MPLIST_DO (p, disp_info->base_font_list) { - mplist_push (plist, MPLIST_KEY (p), MPLIST_VAL (p)); + mplist_add (plist, MPLIST_KEY (p), MPLIST_VAL (p)); num++; if (num == maxnum) - break; + return num; } else { @@ -958,10 +958,10 @@ xfont_list (MFrame *frame, MPlist *plist, MFont *font, MSymbol language, xfont = xfontlist->fonts + i; if (mfont__match_p (&xfont->core, font, MFONT_REGISTRY)) { - mplist_push (plist, MPLIST_KEY (p), &xfont->core); + mplist_add (plist, MPLIST_KEY (p), &xfont->core); num++; if (num == maxnum) - break; + return num; } } if (family != Mnil) -- 1.7.10.4