]> git.lyx.org Git - lyx.git/commitdiff
another safety belt
authorAndré Pönitz <poenitz@gmx.net>
Thu, 14 Nov 2002 07:48:34 +0000 (07:48 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 14 Nov 2002 07:48:34 +0000 (07:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5632 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/formulabase.C
src/mathed/formulabase.h

index 4061d23a8819f8c4e95f0b2d3b4d56be858baddf..3d9764da34409cba58ec3a97af1d0ff1b1f61b59 100644 (file)
@@ -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);
index 0aeef469a688b8cadab4b268ce6c37bf1ca096c2..5d8e81474fe17e78f2a8967422b1081ef494c24c 100644 (file)
@@ -149,4 +149,7 @@ protected:
 // So do it here.
 void mathDispatch(FuncRequest const &);
 
+///
+void releaseMathCursor(BufferView * bv);
+
 #endif