diff --git a/src/frontends/xforms/FontInfo.C b/src/frontends/xforms/FontInfo.C index 52788c7946..350116735e 100644 --- a/src/frontends/xforms/FontInfo.C +++ b/src/frontends/xforms/FontInfo.C @@ -142,10 +142,8 @@ void FontInfo::query() scaleindex = i; } scalable = true; - }; - // Ignore bogus matches of scalable fonts. - if (sizes[i] > 0 && - lyx::atoi(token(name, '-', 12)) == 0) + } else if (lyx::atoi(token(name, '-', 12)) == 0) + // Ignore bogus matches of scalable fonts. sizes[i] = 0; }; XFreeFontNames(list);