// 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);
}