]> git.lyx.org Git - features.git/blobdiff - src/mathed/formulamacro.C
Part of IU.
[features.git] / src / mathed / formulamacro.C
index 9ea39270e6d16d04a3ef8ebe3b5b243a4048d863..69a2ad36d1619a613b0bf40153c3d3087e73eaab 100644 (file)
@@ -35,9 +35,6 @@ using std::auto_ptr;
 using std::ostream;
 
 
-extern MathCursor * mathcursor;
-
-
 InsetFormulaMacro::InsetFormulaMacro()
 {
        // inset name is inherited from Inset
@@ -173,9 +170,9 @@ void InsetFormulaMacro::draw(PainterInfo & p, int x, int y) const
        pi.pain.fillRectangle(x, a, w, h, LColor::mathmacrobg);
        pi.pain.rectangle(x, a, w, h, LColor::mathframe);
 
-       if (mathcursor &&
-                       const_cast<InsetFormulaBase const *>(mathcursor->formula()) == this)
-               mathcursor->drawSelection(pi);
+       if (inMathed() &&
+                       const_cast<InsetFormulaBase const *>(mathcursor::formula()) == this)
+               mathcursor::drawSelection(pi);
 
        pi.pain.text(x + 2, y, prefix(), font);