X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffactory.cpp;h=eba16dcc30bf7782fa4838363e8c1032b6feba0f;hb=cca78e3c8ae27431323746abd64f9d7db017099d;hp=15bef4b3875d4f59bcd089299e3013bd37e1b2ce;hpb=a7a31dc3924497373479621a1bae5bb195dcc6f2;p=lyx.git diff --git a/src/factory.cpp b/src/factory.cpp index 15bef4b387..eba16dcc30 100644 --- a/src/factory.cpp +++ b/src/factory.cpp @@ -388,7 +388,7 @@ Inset * createInsetHelper(Buffer & buf, FuncRequest const & cmd) if (message.type_ == ErrorException) { // This should never happen! Alert::error(message.title_, message.details_); - LyX::cref().exit(1); + lyx_exit(1); } else if (message.type_ == WarningException) { Alert::warning(message.title_, message.details_); return 0; @@ -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") {