mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
Fix hyphen conversion in passThru insets
The old hyphen replacement code did not convert hyphens if the condition style.pass_thru || runparams.pass_thru was met. style.pass_thru got set from inset owner (isPassThru()). Therefore we have to consider this for the new replacement code as well.
This commit is contained in:
parent
93be0e08a1
commit
d49051d99f
@ -504,7 +504,8 @@ void Text::readParToken(Paragraph & par, Lexer & lex,
|
||||
Layout const & layout(par.layout());
|
||||
FontInfo info = font.fontInfo();
|
||||
info.realize(layout.resfont);
|
||||
if (layout.pass_thru || info.family() == TYPEWRITER_FAMILY) {
|
||||
if (layout.pass_thru || inset().isPassThru() ||
|
||||
info.family() == TYPEWRITER_FAMILY) {
|
||||
if (token == "\\twohyphens")
|
||||
par.insert(par.size(), from_ascii("--"), font, change);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user