From: Richard Heck Date: Fri, 12 Apr 2013 01:43:01 +0000 (-0400) Subject: Remove useless test and add comment. X-Git-Tag: 2.1.0beta1~397 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=19554dda4e2f365e57b64cc0145272725c29cc65;p=features.git Remove useless test and add comment. --- diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index 08c7e0de40..b6238387cd 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -598,8 +598,9 @@ string BufferParams::readToken(Lexer & lex, string const & token, // be available. string tcp; LayoutFileList & bcl = LayoutFileList::get(); - if (tcp.empty() && !filepath.empty()) + if (!filepath.empty()) tcp = bcl.addLocalLayout(classname, filepath.absFileName()); + // that returns non-empty if a "local" layout file is found. if (!tcp.empty()) setBaseClass(tcp); else