]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formula.C
more IU
[lyx.git] / src / mathed / formula.C
index b6d94ee06583359a29c3fd4c5b11f284f5537669..c80334a0567a390cb38ac229fac79a01571103b2 100644 (file)
@@ -174,13 +174,6 @@ void InsetFormula::read(Buffer const &, LyXLex & lex)
 }
 
 
-//ostream & operator<<(ostream & os, LyXCursor const & c)
-//{
-//     os << '[' << c.x() << ' ' << c.y() << ' ' << c.pos() << ']';
-//     return os;
-//}
-
-
 namespace {
 
 bool editing_inset(InsetFormula const * inset)
@@ -195,6 +188,9 @@ bool editing_inset(InsetFormula const * inset)
 
 void InsetFormula::draw(PainterInfo & pi, int x, int y) const
 {
+       xo_ = x;
+       yo_ = y;
+
        // The previews are drawn only when we're not editing the inset.
        bool const use_preview = !editing_inset(this)
                && RenderPreview::activated()
@@ -224,13 +220,6 @@ void InsetFormula::draw(PainterInfo & pi, int x, int y) const
 
                par_->draw(p, x, y);
        }
-
-       xo_ = x;
-       yo_ = y;
-
-       top_x = x;
-       top_baseline = y;
-
 }