git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32782 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-01-05 21:18:55 +00:00
parent c5fda15678
commit 3efb4cd65e

View File

@ -3467,16 +3467,17 @@ FuncRequest LyXAction::lookupFunc(string const & func) const
{
string const func2 = trim(func);
if (func2.empty()) {
if (func2.empty())
return FuncRequest(LFUN_NOACTION);
}
string cmd;
string const arg = split(func2, cmd, ' ');
FuncMap::const_iterator fit = lyx_func_map.find(cmd);
FuncMap::const_iterator const fit = lyx_func_map.find(cmd);
return fit != lyx_func_map.end() ? FuncRequest(fit->second, arg) : FuncRequest(LFUN_UNKNOWN_ACTION);
return fit != lyx_func_map.end()
? FuncRequest(fit->second, arg)
: FuncRequest(LFUN_UNKNOWN_ACTION);
}