mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-03 14:13:58 +00:00
compile fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23507 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
902b41c919
commit
682f4efd13
@ -423,9 +423,11 @@ void handle_comment(ostream & os, string const & s, Context & context)
|
||||
|
||||
LayoutPtr findLayout(TextClass const & textclass, string const & name)
|
||||
{
|
||||
DocumentClass::const_iterator lit = textclass.begin();
|
||||
DocumentClass::const_iterator len = textclass.end();
|
||||
for (size_t i = 0; i != textclass.layoutCount(); ++i)
|
||||
if (textclass.layout(i)->latexname() == name)
|
||||
return textclass.layout(i);
|
||||
if ((*lit)->latexname() == name)
|
||||
return *lit;
|
||||
return LayoutPtr();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user