From a1e2e12ba4443c2d67a96fcabbddc9337598f828 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 23 Jul 2012 08:40:37 +0200 Subject: [PATCH] Suppress babel RTL commands when using polyglossia (part of #8251) --- src/Paragraph.cpp | 1 + src/insets/InsetTabular.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index d93594a678..807abbde80 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -1076,6 +1076,7 @@ void Paragraph::Private::latexInset(BufferParams const & bparams, odocstream::pos_type const len = os.os().tellp(); if (inset->forceLTR() + && !runparams.use_polyglossia && running_font.isRightToLeft() // ERT is an exception, it should be output with no // decorations at all diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 8e796dbbf9..58505cc45c 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -2493,7 +2493,8 @@ void Tabular::TeXRow(otexstream & os, row_type row, Paragraph const & par = inset->paragraphs().front(); bool rtl = par.isRTL(buffer().params()) && !par.empty() - && getPWidth(cell).zero(); + && getPWidth(cell).zero() + && !runparams.use_polyglossia; if (rtl) { string const lang = -- 2.39.2