From adfeb9637fec57060505f84754f5afca51fea2e1 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sat, 10 Oct 2015 21:15:55 +0200 Subject: [PATCH] Fix copy-paste leftover 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index e9d0f41871..a4aa71f13a 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -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"); }