Here's another patch for providing the tabular math inset with a real box of sensible dimensions. OK?
- Martin
Index: math_tabularinset.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_tabularinset.C,v retrieving revision 1.14 diff -u -r1.14 math_tabularinset.C --- math_tabularinset.C 3 Apr 2005 12:07:49 -0000 1.14 +++ math_tabularinset.C 4 Apr 2005 08:25:52 -0000 @@ -48,17 +48,19 @@ } -void MathTabularInset::metrics(MetricsInfo & mi, Dimension & /*dim*/) const +void MathTabularInset::metrics(MetricsInfo & mi, Dimension & dim) const { FontSetChanger dummy(mi.base, "textnormal"); - return MathGridInset::metrics(mi); + MathGridInset::metrics(mi, dim); + dim.wid += 6; + dim_ = dim; } void MathTabularInset::draw(PainterInfo & pi, int x, int y) const { FontSetChanger dummy(pi.base, "textnormal"); - MathGridInset::draw(pi, x, y); + MathGridInset::drawWithMargin(pi, x, y, 4, 2); }
pgpvmwKhxYEYC.pgp
Description: PGP signature