]> git.lyx.org Git - lyx.git/commit
Replace hardcoded inheritFont() with InheritFont InsetLayout tag
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 22 Jul 2023 21:27:09 +0000 (23:27 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 22 Jul 2023 21:38:53 +0000 (23:38 +0200)
commit81e35bc396425548c6ced2ff905efbf56877d13c
tree4877a81b05833a24d5d5ad8540e147279983e832
parent747de78f9c15ef50b1297cc8f307e5d57e5319b5
Replace hardcoded inheritFont() with InheritFont InsetLayout tag

Each removed inheritFont method is replaced by a 'InheritFont false'
line in the relevant InsetLayout entry.

Add code to layout2layout that does this automatically when the entry
is missing.

The case of InsetScript is special, since the inheritFont() was not
needed here: the default is indeed true.

Fixes bug #12238.
lib/layouts/stdinsets.inc
lib/scripts/layout2layout.py
src/TextClass.cpp
src/insets/InsetBox.h
src/insets/InsetFloat.h
src/insets/InsetFootlike.h
src/insets/InsetListings.h
src/insets/InsetNote.h
src/insets/InsetScript.h
src/insets/InsetTabular.h