X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Frowpainter.cpp;h=e3dfefba8f9acd60db54af12817cf2100183e8f5;hb=8524ee93c35ed3ca15a0aaafa7b893f2f7d21f47;hp=c38f31196e8acb4ceaa41965c1247b5edc9e5f7f;hpb=048a38b66c8c846b80cc6f1c4ff5d48650815b19;p=lyx.git diff --git a/src/rowpainter.cpp b/src/rowpainter.cpp index c38f31196e..e3dfefba8f 100644 --- a/src/rowpainter.cpp +++ b/src/rowpainter.cpp @@ -429,7 +429,8 @@ void RowPainter::paintFromPos(pos_type & vpos) // special case languages std::string const & lang = orig_font.language()->lang(); bool const hebrew = lang == "hebrew"; - bool const arabic = lang == "arabic" || lang == "farsi"; + bool const arabic = lang == "arabic_arabtex" || lang == "arabic_arabi" || + lang == "farsi"; // draw as many chars as we can if ((!hebrew && !arabic) @@ -1061,12 +1062,12 @@ void paintText(BufferView & bv, // and grey out above (should not happen later) // lyxerr << "par ascent: " << text.getPar(vi.p1).ascent() << endl; - if (vi.y1 > 0 && vi.update_strategy != SingleParUpdate) + if (vi.y1 > 0 && vi.update_strategy == FullScreenUpdate) pain.fillRectangle(0, 0, bv.workWidth(), vi.y1, Color::bottomarea); // and possibly grey out below // lyxerr << "par descent: " << text.getPar(vi.p1).ascent() << endl; - if (vi.y2 < bv.workHeight() && vi.update_strategy != SingleParUpdate) + if (vi.y2 < bv.workHeight() && vi.update_strategy == FullScreenUpdate) pain.fillRectangle(0, vi.y2, bv.workWidth(), bv.workHeight() - vi.y2, Color::bottomarea); }