From: Abdelrazak Younes Date: Sat, 23 Feb 2008 18:10:52 +0000 (+0000) Subject: fix crash on quit with Ctr-Q. Patch by Horst Schirmeier (see http://bugzilla.lyx... X-Git-Tag: 1.6.10~6138 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ee4dcf105a5908add3988f5339bea3d2e885fcdd;p=features.git 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 --- 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(); }