]> git.lyx.org Git - lyx.git/blobdiff - src/factory.cpp
Fix memory leak.
[lyx.git] / src / factory.cpp
index e332a0b7d2c901017f088428607fddf260f08035..faa386251c7a4fbf9c34cb1c5f6ddd2ad649a946 100644 (file)
@@ -171,7 +171,7 @@ Inset * createInset(BufferView * bv, FuncRequest const & cmd)
 
                case LFUN_WRAP_INSERT: {
                        string const argument = to_utf8(cmd.argument());
-                       if (argument == "figure")
+                       if (argument == "figure" || argument == "table")
                                return new InsetWrap(params, argument);
                        lyxerr << "Non-existent wrapfig type: " << argument << endl;
                        return 0;