From: André Pönitz Date: Thu, 14 Nov 2002 07:48:34 +0000 (+0000) Subject: another safety belt X-Git-Tag: 1.6.10~17976 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ac103f15a7cead429a7b2ee1f75d67cc988ec81d;p=lyx.git another safety belt git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5632 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/formulabase.C b/src/mathed/formulabase.C index 4061d23a88..3d9764da34 100644 --- a/src/mathed/formulabase.C +++ b/src/mathed/formulabase.C @@ -233,6 +233,10 @@ void InsetFormulaBase::getCursorPos(BufferView *, int & x, int & y) const void InsetFormulaBase::toggleInsetCursor(BufferView * bv) { + if (!mathcursor) { + lyxerr << "toggleInsetCursor impossible\n"; + return; + } //lyxerr << "toggleInsetCursor: " << isCursorVisible() << "\n"; if (isCursorVisible()) hideInsetCursor(bv); diff --git a/src/mathed/formulabase.h b/src/mathed/formulabase.h index 0aeef469a6..5d8e81474f 100644 --- a/src/mathed/formulabase.h +++ b/src/mathed/formulabase.h @@ -149,4 +149,7 @@ protected: // So do it here. void mathDispatch(FuncRequest const &); +/// +void releaseMathCursor(BufferView * bv); + #endif