mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-12 08:41:46 +00:00
fix the bug fix in 23507
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23508 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
682f4efd13
commit
a56dec8330
@ -425,7 +425,7 @@ LayoutPtr findLayout(TextClass const & textclass, string const & name)
|
|||||||
{
|
{
|
||||||
DocumentClass::const_iterator lit = textclass.begin();
|
DocumentClass::const_iterator lit = textclass.begin();
|
||||||
DocumentClass::const_iterator len = textclass.end();
|
DocumentClass::const_iterator len = textclass.end();
|
||||||
for (size_t i = 0; i != textclass.layoutCount(); ++i)
|
for (; lit != len; ++lit)
|
||||||
if ((*lit)->latexname() == name)
|
if ((*lit)->latexname() == name)
|
||||||
return *lit;
|
return *lit;
|
||||||
return LayoutPtr();
|
return LayoutPtr();
|
||||||
|
Loading…
Reference in New Issue
Block a user