]> git.lyx.org Git - features.git/commitdiff
Remove redundant font loader code
authorScott Kostyshak <skostysh@lyx.org>
Fri, 20 Mar 2020 13:12:47 +0000 (09:12 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Fri, 20 Mar 2020 13:18:09 +0000 (09:18 -0400)
Setting the family to "family" is already attempted above. A
different case was adapted to be this duplicate case at d4ff3a29,
but it should have just been removed.

Spotted by Enrico.

src/frontends/qt/GuiFontLoader.cpp

index 69dba8d45d4bcf7d90b7577d8b70e074cf55b8f8..cf73292f2ab4199951255fe5240bdf0912010f91 100644 (file)
@@ -203,15 +203,6 @@ QFont symbolFont(QString const & family, bool * ok)
                return font;
        }
 
-       LYXERR(Debug::FONT, "Trying " << family << " ... ");
-       font.setFamily(family);
-
-       if (isChosenFont(font, family, QString())) {
-               LYXERR(Debug::FONT, "raw version!");
-               *ok = true;
-               return font;
-       }
-
        LYXERR(Debug::FONT, " FAILED :-(");
        *ok = false;
        return font;