fix(ui): check for this as relative should use frame points not this points

This commit is contained in:
fallenoak 2025-12-07 17:55:15 -06:00
parent 0d4afee947
commit 492dc74392
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -280,7 +280,7 @@ void CLayoutFrame::DestroyLayout() {
auto frame = node->frame;
for (int32_t i = 0; i < FRAMEPOINT_NUMPOINTS; i++) {
auto point = this->m_points[i];
auto point = frame->m_points[i];
if (point && point->m_relative == this) {
point->MarkUnused();