From a4f731a397267816d6065560c4fe6419e7b42529 Mon Sep 17 00:00:00 2001 From: Jackburton79 Date: Thu, 14 Nov 2024 21:35:22 +0100 Subject: [PATCH] Simplify code --- src/ui/StyledItem.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ui/StyledItem.cpp b/src/ui/StyledItem.cpp index 365e5f16..0a3f9e93 100644 --- a/src/ui/StyledItem.cpp +++ b/src/ui/StyledItem.cpp @@ -42,9 +42,7 @@ StyledItem::DrawItem(BView* owner, BRect bounds, bool complete) DrawItemPrepare(owner, bounds, complete); float iconSize = be_control_look->ComposeIconSize(B_MINI_ICON).Height(); - BRect iconRect = bounds; - iconRect.right = iconRect.left + 4; - iconRect = DrawIcon(owner, bounds, iconSize); + BRect iconRect = DrawIcon(owner, bounds, iconSize); BPoint textPoint(iconRect.right + be_control_look->DefaultLabelSpacing(), bounds.top + BaselineOffset());