]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formula.C
Georg Baum's vspace change
[lyx.git] / src / mathed / formula.C
index b6d94ee06583359a29c3fd4c5b11f284f5537669..5c3a71e4939dc190c4e0993a266ba53131f04ac6 100644 (file)
@@ -195,6 +195,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 +227,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;
-
 }