The inherited 'draw' is not good enough (Fonts too large) The patch fixes this properly and is straight-forward.
Ok? Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Index: math_arrayinset.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_arrayinset.C,v retrieving revision 1.33 diff -u -p -r1.33 math_arrayinset.C --- math_arrayinset.C 25 Sep 2002 12:49:55 -0000 1.33 +++ math_arrayinset.C 1 Oct 2002 16:49:05 -0000 @@ -68,10 +68,23 @@ MathInset * MathArrayInset::clone() cons void MathArrayInset::metrics(MathMetricsInfo & mi) const { - MathMetricsInfo m = mi; - if (m.base.style == LM_ST_DISPLAY) - m.base.style = LM_ST_TEXT; - MathGridInset::metrics(m); + if (mi.base.style == LM_ST_DISPLAY) { + MathStyleChanger(mi.base, LM_ST_TEXT); + MathGridInset::metrics(mi); + } else { + MathGridInset::metrics(mi); + } +} + + +void MathArrayInset::draw(MathPainterInfo & pi, int x, int y) const +{ + if (pi.base.style == LM_ST_DISPLAY) { + MathStyleChanger(pi.base, LM_ST_TEXT); + MathGridInset::draw(pi, x, y); + } else { + MathGridInset::draw(pi, x, y); + } } Index: math_arrayinset.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_arrayinset.h,v retrieving revision 1.19 diff -u -p -r1.19 math_arrayinset.h --- math_arrayinset.h 11 Sep 2002 08:26:02 -0000 1.19 +++ math_arrayinset.h 1 Oct 2002 16:49:05 -0000 @@ -30,7 +30,9 @@ public: /// MathInset * clone() const; /// - void metrics(MathMetricsInfo & st) const; + void metrics(MathMetricsInfo & mi) const; + /// + void draw(MathPainterInfo & pi, int x, int y) const; /// MathArrayInset * asArrayInset() { return this; } ///