From b7c3347e9a305ddbc9394113cf9f038c47b6e7a2 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Mon, 18 Dec 2006 16:45:20 +0000 Subject: [PATCH] Fix bug 3037 * src/lyxfunc.C (LyXFunc::dispatch): Use default include type if no type is given git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16324 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/lyxfunc.C | 5 +++++ 1 file changed, 5 insertions(+) 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") {