mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Suppress babel RTL commands when using polyglossia (part of #8251)
This commit is contained in:
parent
f30d6acb04
commit
a1e2e12ba4
@ -1076,6 +1076,7 @@ void Paragraph::Private::latexInset(BufferParams const & bparams,
|
|||||||
odocstream::pos_type const len = os.os().tellp();
|
odocstream::pos_type const len = os.os().tellp();
|
||||||
|
|
||||||
if (inset->forceLTR()
|
if (inset->forceLTR()
|
||||||
|
&& !runparams.use_polyglossia
|
||||||
&& running_font.isRightToLeft()
|
&& running_font.isRightToLeft()
|
||||||
// ERT is an exception, it should be output with no
|
// ERT is an exception, it should be output with no
|
||||||
// decorations at all
|
// decorations at all
|
||||||
|
@ -2493,7 +2493,8 @@ void Tabular::TeXRow(otexstream & os, row_type row,
|
|||||||
Paragraph const & par = inset->paragraphs().front();
|
Paragraph const & par = inset->paragraphs().front();
|
||||||
bool rtl = par.isRTL(buffer().params())
|
bool rtl = par.isRTL(buffer().params())
|
||||||
&& !par.empty()
|
&& !par.empty()
|
||||||
&& getPWidth(cell).zero();
|
&& getPWidth(cell).zero()
|
||||||
|
&& !runparams.use_polyglossia;
|
||||||
|
|
||||||
if (rtl) {
|
if (rtl) {
|
||||||
string const lang =
|
string const lang =
|
||||||
|
Loading…
Reference in New Issue
Block a user