From 82e603cf0c5a844f954db124a154aa1289d8a35c Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Wed, 22 Oct 2008 18:15:09 +0000 Subject: [PATCH] * create a new window for a help file if there is none git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27024 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LyXFunc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LyXFunc.cpp b/src/LyXFunc.cpp index ca9e5fef6b..e2c2ccb57b 100644 --- a/src/LyXFunc.cpp +++ b/src/LyXFunc.cpp @@ -1029,7 +1029,8 @@ void LyXFunc::dispatch(FuncRequest const & cmd) break; case LFUN_HELP_OPEN: { - LASSERT(lyx_view_, /**/); + if (lyx_view_ == 0) + theApp()->dispatch(FuncRequest(LFUN_WINDOW_NEW)); string const arg = argument; if (arg.empty()) { setErrorMessage(from_ascii(N_("Missing argument"))); -- 2.39.5