On Sat, Mar 04, 2000 at 01:02:09PM +0200, Dekel Tsur wrote:
> I've found the following bugs in LyX 1.1.5cvs (they are not present in 1.1.4)
> 
> 2. The size of the font in a math insets which is inside a paragraph with a
> larger font size (e.g. title, section etc.) is incorrect.
> Load the attached bug.lyx file to see an example.
> 

I've managed to fix this bug. The patch is attached.
Index: src/mathed/formula.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/formula.C,v
retrieving revision 1.29
diff -u -p -r1.29 formula.C
--- src/mathed/formula.C        2000/03/02 02:19:42     1.29
+++ src/mathed/formula.C        2000/03/04 11:04:33
@@ -404,11 +404,9 @@ int InsetFormula::width(Painter &, LyXFo
 }
 
 
-void InsetFormula::draw(Painter & pain, LyXFont const &,
+void InsetFormula::draw(Painter & pain, LyXFont const & font,
                        int baseline, float & x) const
 {
-       LyXFont font = mathed_get_font(LM_TC_TEXTRM, LM_ST_TEXT);
-
        lfont_size = font.size();
        /// Let's try to wait a bit with this... (Lgb)
        //UpdatableInset::draw(pain, font, baseline, x);

Reply via email to