]> git.lyx.org Git - features.git/commitdiff
Remove useless test and add comment.
authorRichard Heck <rgheck@lyx.org>
Fri, 12 Apr 2013 01:43:01 +0000 (21:43 -0400)
committerRichard Heck <rgheck@lyx.org>
Fri, 12 Apr 2013 01:43:01 +0000 (21:43 -0400)
src/BufferParams.cpp

index 08c7e0de400f8fdfafb8939be0925d4b8664eed1..b6238387cdd30af6585172724bcfc7278d2cf14b 100644 (file)
@@ -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