mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
rework splitter implementation
This commit is contained in:
@@ -714,6 +714,10 @@ void UIWidget::setLayout(const UILayoutPtr& layout)
|
||||
|
||||
void UIWidget::setRect(const Rect& rect)
|
||||
{
|
||||
if(rect.width() > 8192 || rect.height() > 8192) {
|
||||
logError("attempt to set huge rect size (", rect,") for ", m_id);
|
||||
return;
|
||||
}
|
||||
// only update if the rect really changed
|
||||
Rect oldRect = m_rect;
|
||||
if(rect == oldRect)
|
||||
|
Reference in New Issue
Block a user