X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffactory.cpp;h=a465a55e86db268b622a9874f81a4bd3d011c943;hb=5be391b274f2cbf4a1da03bc5ee2136cb6c4e660;hp=4ab74dad4c59093c54c8b3146989e758151a2355;hpb=7d7b21ec3e60f0186929016d89a0dfeb4ad8c60f;p=lyx.git diff --git a/src/factory.cpp b/src/factory.cpp index 4ab74dad4c..a465a55e86 100644 --- a/src/factory.cpp +++ b/src/factory.cpp @@ -163,8 +163,8 @@ Inset * createInsetHelper(Buffer * buf, FuncRequest const & cmd) case LFUN_INDEXMACRO_INSERT: { string const arg = cmd.getArg(0); if (arg != "see" && arg != "seealso" - && arg != "subindex" && arg != "sortkey") { - LYXERR0("LFUN_IPAMACRO_INSERT: wrong argument"); + && arg != "subentry" && arg != "sortkey") { + LYXERR0("LFUN_INDEXMACRO_INSERT: wrong argument"); return nullptr; } return new InsetIndexMacro(buf, arg);