diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 35edfe2e1b..0be7635e25 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -1246,6 +1246,11 @@ void LyXFunc::dispatch(FuncRequest const & cmd) InsetCommandParams p(name); data = InsetCommandMailer::params2string(name, p); } else if (name == "include") { + // data is the include type: one of "include", + // "input", "verbatiminput" or "verbatiminput*" + if (data.empty()) + // default type is requested + data = "include"; InsetCommandParams p(data); data = InsetIncludeMailer::params2string(p); } else if (name == "box") {