]> git.lyx.org Git - lyx.git/blobdiff - src/Text2.cpp
Revert 23154.
[lyx.git] / src / Text2.cpp
index b7dc9a13d60373425bf835bd9eebf70d52594ef0..7ea03cd6bb064ed460b4ef1cd1633320b359b041 100644 (file)
@@ -199,7 +199,7 @@ void Text::setLayout(Buffer const & buffer, pit_type start, pit_type end,
        BOOST_ASSERT(start != end);
 
        BufferParams const & bufparams = buffer.params();
-       LayoutPtr const & lyxlayout = bufparams.textClass()[layout];
+       LayoutPtr const & lyxlayout = bufparams.getTextClass()[layout];
 
        for (pit_type pit = start; pit != end; ++pit) {
                Paragraph & par = pars_[pit];
@@ -218,7 +218,7 @@ void Text::setLayout(Cursor & cur, docstring const & layout)
        // special handling of new environment insets
        BufferView & bv = cur.bv();
        BufferParams const & params = bv.buffer().params();
-       LayoutPtr const & lyxlayout = params.textClass()[layout];
+       LayoutPtr const & lyxlayout = params.getTextClass()[layout];
        if (lyxlayout->is_environment) {
                // move everything in a new environment inset
                LYXERR(Debug::DEBUG, "setting layout " << to_utf8(layout));