]> git.lyx.org Git - features.git/commitdiff
Fix bug #7629. Problem was I only reverted part of a previous fix
authorRichard Heck <rgheck@comcast.net>
Wed, 15 Jun 2011 11:45:18 +0000 (11:45 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 15 Jun 2011 11:45:18 +0000 (11:45 +0000)
that broke the string freeze.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39059 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text.cpp

index c877e63263b2636e1ab7001b9e6693181cd4a4b0..6cc6c520e677029b7638a68700d23b691c8b684e 100644 (file)
@@ -356,7 +356,7 @@ void Text::readParToken(Paragraph & par, Lexer & lex,
                // of this document. For example, when you apply class article to a beamer document,
                // all unknown layouts such as frame will be added to document class article so that
                // these layouts can keep their original names.
-
+               tclass.addLayoutIfNeeded(layoutname);
                par.setLayout(bp.documentClass()[layoutname]);
 
                // Test whether the layout is obsolete.