]> git.lyx.org Git - lyx.git/blobdiff - src/Bidi.cpp
* gcc does not like missing characters in keywords
[lyx.git] / src / Bidi.cpp
index 02d0df8026cd10bfd7a4f7f4d4e4bed310b494a8..00aa9fcd7c9bc368910d41e6d59dbf246cf75dbd 100644 (file)
@@ -60,7 +60,7 @@ void Bidi::computeTables(Paragraph const & par,
                return;
        }
 
-       if (par.ownerCode() == Inset::ERT_CODE || par.ownerCode() == Inset::LISTINGS_CODE) {
+       if (par.ownerCode() == ERT_CODE || par.ownerCode() == LISTINGS_CODE) {
                start_ = -1;
                return;
        }
@@ -110,9 +110,9 @@ void Bidi::computeTables(Paragraph const & par,
                        ? lpos + 1 : lpos;
                Font font = par.getFontSettings(bufparams, pos);
                if (pos != lpos && 0 < lpos && rtl0 && font.isRightToLeft() &&
-                   font.number() == Font::ON &&
-                   par.getFontSettings(bufparams, lpos - 1).number()
-                   == Font::ON) {
+                   font.fontInfo().number() == FONT_ON &&
+                   par.getFontSettings(bufparams, lpos - 1).fontInfo().number()
+                   == FONT_ON) {
                        font = par.getFontSettings(bufparams, lpos);
                        is_space = false;
                }