mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
Do not attempt to close language twice
This commit is contained in:
parent
8362360639
commit
448e5efab4
@ -2615,6 +2615,7 @@ void Paragraph::latex(BufferParams const & bparams,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Do we need to close the previous font?
|
// Do we need to close the previous font?
|
||||||
|
bool langClosed = false;
|
||||||
if (open_font &&
|
if (open_font &&
|
||||||
((current_font != running_font
|
((current_font != running_font
|
||||||
|| current_font.language() != running_font.language())
|
|| current_font.language() != running_font.language())
|
||||||
@ -2650,6 +2651,7 @@ void Paragraph::latex(BufferParams const & bparams,
|
|||||||
}
|
}
|
||||||
running_font = basefont;
|
running_font = basefont;
|
||||||
open_font = false;
|
open_font = false;
|
||||||
|
langClosed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if necessary, close language environment before opening CJK
|
// if necessary, close language environment before opening CJK
|
||||||
@ -2749,7 +2751,7 @@ void Paragraph::latex(BufferParams const & bparams,
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
running_font = current_font;
|
running_font = current_font;
|
||||||
open_font = true;
|
open_font = !langClosed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user