]> git.lyx.org Git - lyx.git/blobdiff - src/factory.cpp
this we don't need anymore
[lyx.git] / src / factory.cpp
index 2c330c33d9091e930e5838782f334a14a75ed3d7..5335629709105618f250cede7c13099c38525d2d 100644 (file)
@@ -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);