]> git.lyx.org Git - features.git/commitdiff
fix crash on quit with Ctr-Q. Patch by Horst Schirmeier (see http://bugzilla.lyx...
authorAbdelrazak Younes <younes@lyx.org>
Sat, 23 Feb 2008 18:10:52 +0000 (18:10 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 23 Feb 2008 18:10:52 +0000 (18:10 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23162 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXFunc.cpp

index 1b7f022535d2e74ee3d038b03b3e2d067e6840f8..a9020fbf13d2bf037a19dfbf2ffa63183151e433 100644 (file)
@@ -379,7 +379,8 @@ void LyXFunc::processKeySym(KeySymbol const & keysym, KeyModifier state)
                        lyx_view_->updateCompletion(false, false);
        }
 
-       lyx_view_->restartCursor();
+       if (lyx_view_)
+               lyx_view_->restartCursor();
 }