Skip to content

Commit

Permalink
Fix font atlas packing algorithm regression
Browse files Browse the repository at this point in the history
  • Loading branch information
egorodet committed Jan 12, 2025
1 parent 07c9af4 commit 7effe6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class RectBinPack
if (IsEmpty())
{
const TSize char_size_with_margins = rect.size + char_margins;
if (!char_size_with_margins.ContainedIn(m_rect.size))
if (!char_size_with_margins.ContainedInOrEqual(m_rect.size))
return false;

// Split node rectangle either vertically or horizontally,
Expand Down

0 comments on commit 7effe6a

Please sign in to comment.