mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Amend a754912
Switch logic, since isStyle() does not cover inline math Fixes: #11338
This commit is contained in:
parent
00ee54e694
commit
9d8fbc7fd1
@ -1148,9 +1148,9 @@ void Paragraph::Private::latexInset(BufferParams const & bparams,
|
||||
// decorations at all
|
||||
&& inset->lyxCode() != ERT_CODE) {
|
||||
if (runparams.use_polyglossia) {
|
||||
if (style.isCommand())
|
||||
os << "\\LR{";
|
||||
os << "\\begin{LTR}";
|
||||
if (style.isEnvironment())
|
||||
os << "\\begin{LTR}";
|
||||
os << "\\LRE{";
|
||||
} else if (running_font.language()->lang() == "farsi"
|
||||
|| running_font.language()->lang() == "arabic_arabi")
|
||||
os << "\\textLR{" << termcmd;
|
||||
@ -1210,7 +1210,7 @@ void Paragraph::Private::latexInset(BufferParams const & bparams,
|
||||
}
|
||||
|
||||
if (close) {
|
||||
if (runparams.use_polyglossia && !style.isCommand())
|
||||
if (runparams.use_polyglossia && style.isEnvironment())
|
||||
os << "\\end{LTR}";
|
||||
else
|
||||
os << '}';
|
||||
|
Loading…
Reference in New Issue
Block a user