]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_deliminset.C
Make Helge happy: no more crash on arrow up/down in math macro
[lyx.git] / src / mathed / math_deliminset.C
index 549ea335a354ec57fb90f44b858ace755074fdd4..7832ddbab68221932db976e012df74edf52bc324 100644 (file)
@@ -64,7 +64,7 @@ MathDelimInset::MathDelimInset
 }
 
 
-auto_ptr<InsetBase> MathDelimInset::clone() const
+auto_ptr<InsetBase> MathDelimInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathDelimInset(*this));
 }
@@ -111,6 +111,7 @@ void MathDelimInset::draw(PainterInfo & pi, int x, int y) const
        mathed_draw_deco(pi, x + 4, b, dw_, dim_.height(), left_);
        mathed_draw_deco(pi, x + dim_.width() - dw_ - 4,
                b, dw_, dim_.height(), right_);
+       setPosCache(pi, x, y);
 }