From ee4dcf105a5908add3988f5339bea3d2e885fcdd Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 23 Feb 2008 18:10:52 +0000 Subject: [PATCH] fix crash on quit with Ctr-Q. Patch by Horst Schirmeier (see http://bugzilla.lyx.org/show_bug.cgi?id=4572) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23162 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 1b7f022535..a9020fbf13 100644 --- a/src/LyXFunc.cpp +++ b/src/LyXFunc.cpp @@ -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(); } -- 2.39.2