X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FTextMetrics.cpp;h=796e1bd25ec949f3c50a229f8ae33b93d5f75c8a;hb=4732da8dc2ffb44a418b0e776ff607079720736a;hp=65a1aa7945eaebac5eebc0ffb0615a3dcc64f3fd;hpb=dea245d5409fb47af7efb5248f1b43e15d6563d3;p=lyx.git diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 65a1aa7945..796e1bd25e 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -1933,9 +1933,9 @@ void TextMetrics::drawParagraph(PainterInfo & pi, pit_type const pit, int const // the begining/end of row. However, it will not work if // the caret has a ridiculous width like 6. (see ticket // #10797) - pi.pain.fillRectangle(max(row_x, 0) - Inset::TEXT_TO_INSET_OFFSET, + pi.pain.fillRectangle(max(row_x, 0) - Inset::textOffset(pi.base.bv), y - row.ascent(), - width() + 2 * Inset::TEXT_TO_INSET_OFFSET, + width() + 2 * Inset::textOffset(pi.base.bv), row.height(), pi.background_color); }