Author: rgheck
Date: Wed Jun 15 13:45:18 2011
New Revision: 39059
URL: http://www.lyx.org/trac/changeset/39059

Log:
Fix bug #7629. Problem was I only reverted part of a previous fix
that broke the string freeze.

Modified:
   lyx-devel/branches/BRANCH_2_0_X/src/Text.cpp

Modified: lyx-devel/branches/BRANCH_2_0_X/src/Text.cpp
==============================================================================
--- lyx-devel/branches/BRANCH_2_0_X/src/Text.cpp        Wed Jun 15 03:02:15 
2011        (r39058)
+++ lyx-devel/branches/BRANCH_2_0_X/src/Text.cpp        Wed Jun 15 13:45:18 
2011        (r39059)
@@ -356,7 +356,7 @@
                // 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.

Reply via email to