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
This commit is contained in:
Abdelrazak Younes 2008-02-23 18:10:52 +00:00
parent 0fb8f3fba1
commit ee4dcf105a

View 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();
}