06/02/2014 22:14, Georg Baum:
This is one of three bugs scheduled for 2.1.0: If you apply font changes,
e.g. small size to a paragraph including a chunk inset, the result will not
be compilable anymore (only after saving and reloading the document).
Jean-Marc did the detective work and found out the reason: resetFontEdit()
returns the wrong value for chunk insets. The attached patch fixes that by
setting the correct value in the layout file, and making the defaults of
resetFontEdit() and inheritFont() compatible. See
http://www.lyx.org/trac/ticket/8874 if you want to understand all details.
I tested this patch extensively, and it works fine now (it is the third
version), but since it involves a layout file format change I'd rather ask:
Is it OK to go in? Of course I would convert all other layout files at the
same time.
I have a couple questions still.
* the description I see of ResetsFont in the Customization manual
strikes me as being like the opposite of Inset::inheritFont. How could
an inset have non-compatible values for these two values? Would it make
any sense? Or is one of the value for screen display and the other for
LaTeX output? In this case do we need a InheritFont InsetLayout parameter?
* concerning resetFontEdit, one might think that using isPassThru would
make sense somewhere.
JMarc