]> git.lyx.org Git - features.git/commitdiff
* create a new window for a help file if there is none
authorStefan Schimanski <sts@lyx.org>
Wed, 22 Oct 2008 18:15:09 +0000 (18:15 +0000)
committerStefan Schimanski <sts@lyx.org>
Wed, 22 Oct 2008 18:15:09 +0000 (18:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27024 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXFunc.cpp

index ca9e5fef6bcf759eb1de00d29dee38545c5d71aa..e2c2ccb57bfafd0d5e4b12656e91900399b51a55 100644 (file)
@@ -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")));