]> git.lyx.org Git - lyx.git/blobdiff - src/Text.cpp
* GuiToolbar.cpp:
[lyx.git] / src / Text.cpp
index 58c2bb0d660c31b668958848124622f25ed1962c..8e6361a6f09449a8b8cc0acff6ed780668787888 100644 (file)
@@ -202,7 +202,7 @@ void readParToken(Buffer const & buf, Paragraph & par, Lexer & lex,
        } else if (token == "\\backslash") {
                par.appendChar('\\', font, change);
        } else if (token == "\\LyXTable") {
-               auto_ptr<Inset> inset(new InsetTabular(buf));
+               auto_ptr<Inset> inset(new InsetTabular(const_cast<Buffer &>(buf)));
                inset->read(lex);
                par.insertInset(par.size(), inset.release(), font, change);
        } else if (token == "\\lyxline") {