From ac103f15a7cead429a7b2ee1f75d67cc988ec81d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 14 Nov 2002 07:48:34 +0000 Subject: [PATCH] another safety belt git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5632 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/formulabase.C | 4 ++++ src/mathed/formulabase.h | 3 +++ 2 files changed, 7 insertions(+) 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