From 7effe6ac6730ada3e18c73ea36f6c1f728fbe31a Mon Sep 17 00:00:00 2001 From: Evgeny Gorodetsky Date: Sun, 12 Jan 2025 16:21:18 +0300 Subject: [PATCH] Fix font atlas packing algorithm regression --- Modules/Data/Primitives/Include/Methane/Data/RectBinPack.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Data/Primitives/Include/Methane/Data/RectBinPack.hpp b/Modules/Data/Primitives/Include/Methane/Data/RectBinPack.hpp index d0a15668a..6c8ccd830 100644 --- a/Modules/Data/Primitives/Include/Methane/Data/RectBinPack.hpp +++ b/Modules/Data/Primitives/Include/Methane/Data/RectBinPack.hpp @@ -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,