Am Mon, 27 Jul 2020 21:10:21 +0200
schrieb Stephan Witt <st.w...@gmx.net>:

> > The bisect for this one leads to
> > 3b6fec38357949da2675dd4524282f1c790eff6e is the first bad commit
> > commit 3b6fec38357949da2675dd4524282f1c790eff6e
> > Author: Juergen Spitzmueller <sp...@lyx.org>
> > Date:   Wed Jul 15 09:11:05 2020 +0200
> > 
> >    Do not terminate size switches in front of insets with InheritFont() 
> > false
> > 
> >    and inherit the size.
> > 
> >    This reduces formatting clutter (#8384) in table and fixes some wrongly
> >    set sizes (#9923, #9285) in tables.
> > 
> > :040000 040000 0f1e962b245826e63668b2e2b788ffdf261dbfc8
> > 9f926691f89cf1dadc27418c03763f1776458a80 M  src
> > 
> > Attached a minimal example  
> 
> On my system this commit causes many latex compiler errors too. The Users 
> Guide is
> broken too. See my report here:
> https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg212011.html
> 
> I tried to solve it by an update of my TeXLive 2020 w/o success. Thank you 
> for your MWE.
> 
> Stephan

For me the attached cures it.
Jürgen, do you have objections?

        Kornel
diff --git a/src/Font.cpp b/src/Font.cpp
index bcfb47782f..b737fcd588 100644
--- a/src/Font.cpp
+++ b/src/Font.cpp
@@ -218,10 +218,11 @@ int Font::latexWriteStartChanges(odocstream & os, BufferParams const & bparams,
 				    Font const & base,
 				    Font const & prev) const
 {
 	int count = 0;
 
+	if (runparams.pass_thru) return count;
 	// polyglossia or babel?
 	if (runparams.use_polyglossia
 	    && language()->lang() != base.language()->lang()
 	    && language() != prev.language()) {
 		if (!language()->polyglossia().empty()) {
@@ -421,10 +422,11 @@ int Font::latexWriteEndChanges(otexstream & os, BufferParams const & bparams,
 				  bool const & closeLanguage,
 				  bool const & non_inherit_inset) const
 {
 	int count = 0;
 
+	if (runparams.pass_thru) return count;
 	// reduce the current font to changes against the base
 	// font (of the layout). We use a temporary for this to
 	// avoid changing this font instance, as that would break
 	FontInfo f = bits_;
 	f.reduce(base.bits_);

Attachment: pgpvj7EFvRpd9.pgp
Description: Digitale Signatur von OpenPGP

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to