mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix font tracking at fontswitch_insets
(hopefully)
This commit is contained in:
parent
83bea9c8c1
commit
8ac177f656
@ -2908,9 +2908,14 @@ void Paragraph::latex(BufferParams const & bparams,
|
||||
column += Changes::latexMarkChange(os, bparams,
|
||||
Change(Change::UNCHANGED), change, rp);
|
||||
}
|
||||
} else {
|
||||
} else {// if fontswitch_inset
|
||||
if (current_font != running_font || !langClosed)
|
||||
// font is still open in fontswitch_insets if we have
|
||||
// a non-lang font difference or if the language
|
||||
// is the only difference but has not been forcedly
|
||||
// closed meanwhile
|
||||
open_font = true;
|
||||
running_font = current_font;
|
||||
open_font &= !langClosed;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user