]> git.lyx.org Git - features.git/commitdiff
Mark spaces which belong to a foreign language in the same manner that non-whitespace...
authorJosé Matox <jamatos@lyx.org>
Thu, 17 May 2007 21:20:34 +0000 (21:20 +0000)
committerJosé Matox <jamatos@lyx.org>
Thu, 17 May 2007 21:20:34 +0000 (21:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18387 a592a061-630c-0410-9148-cb99ea01b6c8

src/rowpainter.cpp

index a8a49d0666e63883cb6ec358b47622cb8650c637..1d17a3b5acbf63a70ba43d0d4d41153b256a6de0 100644 (file)
@@ -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);
                }