]> git.lyx.org Git - features.git/commitdiff
Suppress babel RTL commands when using polyglossia (part of #8251)
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 23 Jul 2012 06:40:37 +0000 (08:40 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 23 Jul 2012 06:40:37 +0000 (08:40 +0200)
src/Paragraph.cpp
src/insets/InsetTabular.cpp

index d93594a6783c20f2190e69bf68977f624942eba7..807abbde80c62b374a4c2312f672cad64fd95471 100644 (file)
@@ -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
index 8e796dbbf9561832593ecaab76b0c3fe7fe86cf1..58505cc45cc0067071b92d26c602873bd466f0cb 100644 (file)
@@ -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 =