X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffactory.cpp;h=4f6cb089a8518fec998e838c1e0dc6d55e5831d0;hb=24fe5b08c0e1dfb739738acb6fc995da7315d35f;hp=1dbf8d3b333c860b6092dee53006f3b6b1fcf426;hpb=79beb91e3a3538e204c436a664efdbeb28d15eb9;p=lyx.git diff --git a/src/factory.cpp b/src/factory.cpp index 1dbf8d3b33..4f6cb089a8 100644 --- a/src/factory.cpp +++ b/src/factory.cpp @@ -495,7 +495,7 @@ Inset * readInset(Lexer & lex, Buffer const & buf) // can be translated to inset codes using insetCode(). And the insets' // write() routines should use insetName() rather than hardcoding it. if (tmptok == "Quotes") { - inset.reset(new InsetQuotes); + inset.reset(new InsetQuotes(buf)); } else if (tmptok == "External") { inset.reset(new InsetExternal(const_cast(buf))); } else if (tmptok == "FormulaMacro") { @@ -521,7 +521,7 @@ Inset * readInset(Lexer & lex, Buffer const & buf) } else if (tmptok == "space") { inset.reset(new InsetSpace); } else if (tmptok == "Tabular") { - inset.reset(new InsetTabular(buf)); + inset.reset(new InsetTabular(const_cast(buf))); } else if (tmptok == "Text") { inset.reset(new InsetText(buf)); } else if (tmptok == "VSpace") {