]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_unknowninset.C
bug + spped fixes + small stuff
[lyx.git] / src / mathed / math_unknowninset.C
index a4075d2b3d3dab47940b9ac954b0e2e6b7003d29..dd1284027fecb92811963f7bf72b9bec715c5470 100644 (file)
@@ -16,7 +16,6 @@
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
 
-
 using std::string;
 using std::auto_ptr;
 
@@ -53,6 +52,7 @@ void MathUnknownInset::normalize(NormalStream & os) const
 void MathUnknownInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        mathed_string_dim(mi.base.font, name_, dim);
+       dim_ = dim;
 }
 
 
@@ -62,6 +62,8 @@ void MathUnknownInset::draw(PainterInfo & pi, int x, int y) const
                drawStrBlack(pi, x, y, name_);
        else
                drawStrRed(pi, x, y, name_);
+       xo_ = x;
+       yo_ = y;
 }