diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index 17f148ed68..fd014a7659 100644 --- a/src/RowPainter.cpp +++ b/src/RowPainter.cpp @@ -687,8 +687,9 @@ void RowPainter::paintSelection() const double x2 = e.pos2x(to); if (x1 > x2) swap(x1, x2); - pi_.pain.fillRectangle(int(x + x1), y1, int(x2 - x1), y2 - y1, - Color_selection); + // the 3rd argument is written like that to avoid rounding issues + pi_.pain.fillRectangle(int(x + x1), y1, int(x2 + x) - int(x1 + x), + y2 - y1, Color_selection); } x += e.full_width(); } diff --git a/status.22x b/status.22x index 8ecdefbf03..85f0290837 100644 --- a/status.22x +++ b/status.22x @@ -69,6 +69,8 @@ What's new - Fix glacial performance with ancient Hebrew text on macOS. +- Fix hole in selection for some zoom and justification values (bug 8883). + - Fix potential crash when cursor enters an inset (bug 10691).