* LyXFunc.cpp: prevent potential assertion.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27842 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-12-11 09:25:08 +00:00
parent 04d1a65234
commit a31a6ccadf

View File

@ -1031,7 +1031,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
theApp()->dispatch(FuncRequest(LFUN_WINDOW_NEW));
string const arg = argument;
if (arg.empty()) {
setErrorMessage(from_ascii(N_("Missing argument")));
setErrorMessage(from_utf8(N_("Missing argument")));
break;
}
FileName const fname = i18nLibFileSearch("doc", arg, "lyx");