X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Frowpainter.C;h=4147a742bd5139bb488930252cae56d677ec95d1;hb=27ef7c726f4e688b615798bad160c5e6af47c3d5;hp=f29b51e1d592023d038c0cfeefdc95d62cc2c006;hpb=e61e83ec205a5d283675095c0b9dfcc9085d2bd8;p=features.git diff --git a/src/rowpainter.C b/src/rowpainter.C index f29b51e1d5..4147a742bd 100644 --- a/src/rowpainter.C +++ b/src/rowpainter.C @@ -202,9 +202,8 @@ void RowPainter::paintHebrewComposeChar(pos_type & vpos, LyXFont const & font) c = par_.getChar(i); if (!Encodings::isComposeChar_hebrew(c)) { if (isPrintableNonspace(c)) { - int const width2 = - text_.singleWidth(*bv_.buffer(), par_, i, c, - text_.getFont(*bv_.buffer(), par_, i)); + int const width2 = text_.singleWidth(par_, i, c, + text_.getFont(*bv_.buffer(), par_, i)); // FIXME UNICODE // This does not work anymore, and non-ascii // characters in source files are forbidden @@ -242,8 +241,7 @@ void RowPainter::paintArabicComposeChar(pos_type & vpos, LyXFont const & font) c = par_.getChar(i); if (!Encodings::isComposeChar_arabic(c)) { if (isPrintableNonspace(c)) { - int const width2 = - text_.singleWidth(*bv_.buffer(), par_, i, c, + int const width2 = text_.singleWidth(par_, i, c, text_.getFont(*bv_.buffer(), par_, i)); dx = (width2 - width) / 2; } @@ -668,8 +666,8 @@ void RowPainter::paintText() font = text_.getFont(buffer, par_, vpos); } - const int width_pos = text_.singleWidth(buffer, par_, pos, - par_.getChar(pos), font); + const int width_pos = + text_.singleWidth(par_, pos, par_.getChar(pos), font); if (x_ + width_pos < 0) { x_ += width_pos;