]> git.lyx.org Git - features.git/commitdiff
Remove duplicated if clause
authorGeorg Baum <baum@lyx.org>
Sun, 5 Jun 2016 17:48:31 +0000 (19:48 +0200)
committerGeorg Baum <baum@lyx.org>
Mon, 6 Jun 2016 18:33:31 +0000 (20:33 +0200)
This was a thinko in 760b7cf2 (found by cppcheck), it was added in 977bbd9b as
well.

src/insets/InsetLayout.cpp

index 7291a60bf14fd7d9242b401b4ef7d569da2c668c..a1677de41f756d8ed045d517341c1506ef468b1d 100644 (file)
@@ -607,9 +607,6 @@ void InsetLayout::readArgument(Lexer & lex)
                } else if (tok == "insertcotext") {
                        lex.next();
                        arg.insertcotext = lex.getBool();
-               } else if (tok == "insertcotext") {
-                       lex.next();
-                       arg.insertcotext = lex.getBool();
                } else if (tok == "leftdelim") {
                        lex.next();
                        arg.ldelim = lex.getDocString();