Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
jackburton79 committed Nov 14, 2024
1 parent da0ca7b commit a4f731a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ui/StyledItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit a4f731a

Please sign in to comment.