]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.cpp
Remove TextClassPtr without losing the type safety it provided.
[lyx.git] / src / insets / InsetText.cpp
index d6975558aad200494b71bb059c1fcd89bbb84a9e..83f705dbf0b73fbb864176cfceaacf529de91f6e 100644 (file)
@@ -103,7 +103,7 @@ InsetText::InsetText(BufferParams const & bp)
 {
        paragraphs().push_back(Paragraph());
        Paragraph & ourpar = paragraphs().back();
-       ourpar.setEmptyOrDefaultLayout(bp.textClass());
+       ourpar.setEmptyOrDefaultLayout(bp.documentClass());
        ourpar.setInsetOwner(this);
 }