From: José Matox Date: Thu, 17 May 2007 21:20:34 +0000 (+0000) Subject: Mark spaces which belong to a foreign language in the same manner that non-whitespace... X-Git-Tag: 1.6.10~9721 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8283c6f5b2b0fdf0e1efd984a70b62f0ba0be591;p=features.git Mark spaces which belong to a foreign language in the same manner that non-whitespace is marked (from Dov). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18387 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/rowpainter.cpp b/src/rowpainter.cpp index a8a49d0666..1d17a3b5ac 100644 --- a/src/rowpainter.cpp +++ b/src/rowpainter.cpp @@ -818,10 +818,13 @@ void RowPainter::paintText() x_ += 2; ++vpos; } else if (par_.isSeparator(pos)) { + Font orig_font = text_.getFont(*bv_.buffer(), par_, pos); + double const orig_x = x_; x_ += width_pos; if (pos >= body_pos) x_ += separator_; ++vpos; + paintForeignMark(orig_x, orig_font); } else { paintFromPos(vpos); }