]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_arrayinset.C
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / math_arrayinset.C
index 8bc8b449ea561b733bc6e8948cc87d6a653ec058..be837bad25d22a580d2d71978c7cb812eefd2f78 100644 (file)
@@ -82,6 +82,8 @@ void MathArrayInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        ArrayChanger dummy(mi.base);
        MathGridInset::metrics(mi, dim);
+       dim.wid += 6;
+       dim_ = dim;
 }
 
 
@@ -89,7 +91,7 @@ void MathArrayInset::draw(PainterInfo & pi, int x, int y) const
 {
        setPosCache(pi, x, y);
        ArrayChanger dummy(pi.base);
-       MathGridInset::draw(pi, x + 1, y);
+       MathGridInset::drawWithMargin(pi, x, y, 4, 2);
 }