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,