From 08bdab7600761803165287f04ced24a0fc3d3fd8 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Mon, 14 Jul 2025 16:58:32 -0400 Subject: [PATCH] Tracker: Fix remaining drawing artifacts, last part of #18826 Change-Id: I9483d67bfb98207e1cde726aaa00df6031933f3c Reviewed-on: https://review.haiku-os.org/c/haiku/+/9496 Tested-by: Commit checker robot Reviewed-by: John Scipione --- src/kits/tracker/TextWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kits/tracker/TextWidget.cpp b/src/kits/tracker/TextWidget.cpp index f671e16752..4af28fd791 100644 --- a/src/kits/tracker/TextWidget.cpp +++ b/src/kits/tracker/TextWidget.cpp @@ -185,6 +185,8 @@ BTextWidget::CalcRectCommon(BPoint poseLoc, const BColumn* column, rect.top = rect.bottom - floorf(ActualFontHeight(view)); } else { float iconSize = (float)view->IconSizeInt(); + textWidth = floorf(textWidth); + // prevent drawing artifacts from selection rect drawing an extra pixel if (view->ViewMode() == kIconMode) { // icon mode