From: Abdelrazak Younes Date: Thu, 6 Mar 2008 09:47:14 +0000 (+0000) Subject: fix the bug fix in 23507 X-Git-Tag: 1.6.10~5839 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a56dec8330e210265361bd25ec404bd78388f2dd;p=features.git fix the bug fix in 23507 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23508 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index bda8714d64..80af3eca21 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -425,7 +425,7 @@ 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) + for (; lit != len; ++lit) if ((*lit)->latexname() == name) return *lit; return LayoutPtr();