]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetEnvironment.cpp
Forgot to restore this before committing 18494. This fixes bug 3725.
[lyx.git] / src / insets / InsetEnvironment.cpp
index 91237537fd5b993c53a68b1e7003a0ba05e3638f..b576573b5c785c3f448f3fa6079e13242c9f5fcd 100644 (file)
@@ -29,7 +29,7 @@ using std::ostream;
 
 InsetEnvironment::InsetEnvironment
                (BufferParams const & bp, string const & name)
-       : InsetText(bp), layout_(bp.getLyXTextClass()[name]), name_(from_utf8(name))
+       : InsetText(bp), layout_(bp.getTextClass()[name]), name_(from_utf8(name))
 {
        setAutoBreakRows(true);
        setDrawFrame(true);
@@ -49,7 +49,7 @@ auto_ptr<Inset> InsetEnvironment::doClone() const
 
 void InsetEnvironment::write(Buffer const & buf, ostream & os) const
 {
-       os << "Environment " << to_utf8(insetName()) << "\n";
+       os << "Environment " << to_utf8(name()) << "\n";
        InsetText::write(buf, os);
 }
 
@@ -62,7 +62,7 @@ void InsetEnvironment::read(Buffer const & buf, Lexer & lex)
 
 docstring const InsetEnvironment::editMessage() const
 {
-       return _("Opened Environment Inset: ") + insetName();
+       return _("Opened Environment Inset: ") + name();
 }
 
 
@@ -83,7 +83,7 @@ int InsetEnvironment::latex(Buffer const & buf, odocstream & os,
 int InsetEnvironment::plaintext(Buffer const & buf, odocstream & os,
                                 OutputParams const & runparams) const
 {
-       os << '[' << to_utf8(insetName()) << ":\n";
+       os << '[' << to_utf8(name()) << ":\n";
        InsetText::plaintext(buf, os, runparams);
        os << "\n]";