mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-06 14:49:53 +03:00
fix(ui): add missing linked check to CLayoutFrame::Resize
This commit is contained in:
1 file changed
+4
-1
@@ -625,7 +625,10 @@ void CLayoutFrame::RegisterResize(CLayoutFrame* frame, uint32_t dep) {
|
|||||||
|
|
||||||
void CLayoutFrame::Resize(int32_t force) {
|
void CLayoutFrame::Resize(int32_t force) {
|
||||||
if (force && !(this->m_flags & 0x8) && this->OnFrameResize()) {
|
if (force && !(this->m_flags & 0x8) && this->OnFrameResize()) {
|
||||||
LayoutFrame::s_resizePendingList.UnlinkNode(this);
|
if (LayoutFrame::s_resizePendingList.IsLinked(this)) {
|
||||||
|
LayoutFrame::s_resizePendingList.UnlinkNode(this);
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user