Attached.
BTW I saw one more near-replica of the outerFont code in text2.C. Shouldn't we unify this stuff? This reminds me of the human genome ;-) - Martin
Index: text2.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text2.C,v retrieving revision 1.634 diff -u -p -r1.634 text2.C --- text2.C 25 Oct 2005 09:14:11 -0000 1.634 +++ text2.C 7 Nov 2005 22:42:01 -0000 @@ -190,6 +190,15 @@ LyXFont LyXText::getFont(Paragraph const if (!isMainText()) applyOuterFont(font); + pit_type pit = pars_.size(); + for (pit_type it = 0; it < pars_.size(); ++it) { + if (&pars_[it] == &par) + pit = it; + } + // Realize against environment font information + if (pit < pars_.size()) + font.realize(outerFont(pit, pars_)); + // Realize with the fonts of lesser depth. font.realize(defaultfont_);
pgpzoMfho9ZBO.pgp
Description: PGP signature