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
This commit is contained in:
Georg Baum 2006-12-18 16:45:20 +00:00
parent cd43719f96
commit b7c3347e9a

View File

@ -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") {