On Fri, Dec 02, 2005 at 11:23:24AM +0100, Jean-Marc Lasgouttes wrote:
> >>>>> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes:
> 
> Martin> I think this is an unrelated bug, having to do with
> Martin> initialization inside an inset. As you correctly remark it
> Martin> only happens first time for that inset.
> 
> Martin> I still propose to check this patch in, and change the bug
> Martin> description to refer to this second bug.
> 
> I am not sure. The current code reduces the font against the layout
> font, which seems an unreasonable thing to do. I suspect this method
> should be plainly removed.
> 
> What you do is to reduce against defaultfont_, which fixes the
> particular bug. But this reduction should _not_ be needed, since the
> paragraph font should be ALL_INHERIT in this case. So what we have to
> do is find out why it is not so.

That means looking at Paragraph::getFontSettings.

From within an inset, I can confirm that indeed the default font
settings are returned when you change layout to Section. When in the
main text, ALL_INHERIT is returned as should.

Looking at the code in Paragraph::getFontSettings, these default settings
seem to come from the font list structure. But how did they get there in
the first place? And why only inside an inset?

- Martin

Attachment: pgpxIlncjh6nM.pgp
Description: PGP signature

Reply via email to