From a31a6ccadf91eb8307de64e19d4936008cc9fc31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Thu, 11 Dec 2008 09:25:08 +0000 Subject: [PATCH] * LyXFunc.cpp: prevent potential assertion. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27842 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LyXFunc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LyXFunc.cpp b/src/LyXFunc.cpp index 753d5c2125..3a29fecedc 100644 --- a/src/LyXFunc.cpp +++ b/src/LyXFunc.cpp @@ -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"); -- 2.39.2