X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffactory.cpp;h=c49da693105cac8270353242499c3962a369edd3;hb=1797f5218b8819874f9dbe97b44445b3b5d598a0;hp=97d95e883184c84b2864a4aba4a601151b79d83e;hpb=efe09aeb50d864d9347f41cefad9369b7e1645ea;p=lyx.git diff --git a/src/factory.cpp b/src/factory.cpp index 97d95e8831..c49da69310 100644 --- a/src/factory.cpp +++ b/src/factory.cpp @@ -64,7 +64,7 @@ #include "support/lstrings.h" #include "support/ExceptionMessage.h" -#include +#include "support/lassert.h" #include @@ -210,8 +210,11 @@ Inset * createInsetHelper(Buffer & buf, FuncRequest const & cmd) case LFUN_ENVIRONMENT_INSERT: return new InsetEnvironment(buf, cmd.argument()); - case LFUN_INFO_INSERT: - return new InsetInfo(buf, to_utf8(cmd.argument())); + case LFUN_INFO_INSERT: { + InsetInfo * inset = new InsetInfo(buf, to_utf8(cmd.argument())); + inset->updateInfo(); + return inset; + } case LFUN_INSET_INSERT: { string const name = cmd.getArg(0);