Remember this was the bug you sort-of-promised to sort-of think about fixing in a better way than just disable font changes insite charstyle insets?
Well, here is that fix. A fringe benefit of having to study the LyX font architecture in all its byzantine glory to help out with Helge's blue underline frustration... yes, it appears to be really this simple ;-) ...and before you ask, yes I have a sanitized version of said architecture in my tree. Among other things. So please, verify that this works for an unmodified tree too. - Martin
Index: text2.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text2.C,v retrieving revision 1.638 diff -u -p -r1.638 text2.C --- text2.C 23 Jan 2006 10:25:41 -0000 1.638 +++ text2.C 26 Jan 2006 21:25:50 -0000 @@ -283,6 +285,11 @@ void LyXText::setCharFont(pit_type pit, } } + // Inside inset, apply the inset's font attributes if any + // (charstyle!) + if (!isMainText()) + layoutfont.realize(font_); + layoutfont.realize(defaultfont_); // Now, reduce font against full layout font
pgptOX7jFl0JJ.pgp
Description: PGP signature