diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp index 78293bfad6..8565d59df3 100644 --- a/src/tex2lyx/Preamble.cpp +++ b/src/tex2lyx/Preamble.cpp @@ -2051,7 +2051,7 @@ void Preamble::parse(Parser & p, string const & forceclass, } } - if (t.cs() == "includeonly") { + else if (t.cs() == "includeonly") { vector includeonlys = getVectorFromString(p.getArg('{', '}')); for (auto & iofile : includeonlys) { string filename(normalize_filename(iofile));