]> git.lyx.org Git - features.git/commitdiff
fix the bug fix in 23507
authorAbdelrazak Younes <younes@lyx.org>
Thu, 6 Mar 2008 09:47:14 +0000 (09:47 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 6 Mar 2008 09:47:14 +0000 (09:47 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23508 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/text.cpp

index bda8714d6443c17922491a91c9f99de672ce07f8..80af3eca215939e625a2beaf8f5834407fb00839 100644 (file)
@@ -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();