]> git.lyx.org Git - lyx.git/commitdiff
Fix copy-paste leftover
authorGeorg Baum <baum@lyx.org>
Sat, 10 Oct 2015 19:15:55 +0000 (21:15 +0200)
committerGeorg Baum <baum@lyx.org>
Sat, 10 Oct 2015 19:15:55 +0000 (21:15 +0200)
Found by cppcheck: (style) Same expression on both sides of '&&'.
I deduced the correct if-condition from the other places where theLaTeXFonts()
is called.

src/frontends/qt4/GuiDocument.cpp

index e9d0f41871d9c1506a375f996bb8385a314085cf..a4aa71f13ab83847247a0fed25fea6975520228a 100644 (file)
@@ -1893,7 +1893,7 @@ bool GuiDocument::completeFontset() const
        return (fontModule->fontsSansCO->itemData(
                        fontModule->fontsSansCO->currentIndex()).toString() == "default"
                && fontModule->fontsSansCO->itemData(
-                       fontModule->fontsSansCO->currentIndex()).toString() == "default");
+                       fontModule->fontsTypewriterCO->currentIndex()).toString() == "default");
 }