]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCommand.cpp
* Get rid of LFUN_TOC_INSERT: we use LFUN_INSET_INSERT "toc".
[lyx.git] / src / insets / InsetCommand.cpp
index b53f08958c76cb83cd2671f86d968eabc95ea755..065bd383e5f81eea455be6625c51a76547b96357 100644 (file)
@@ -229,6 +229,11 @@ bool InsetCommand::string2params(string const & name, string const & in,
        params.clear();
        if (in.empty())
                return false;
+       // This happens when inset-insert is called without argument except for the
+       // inset type; ex:
+       // "inset-insert toc"
+       if (in == name)
+               return true;
        istringstream data(in);
        Lexer lex;
        lex.setStream(data);