mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 12:34:55 +02:00
Changes for the mapeditor
This commit is contained in:
@@ -815,10 +815,12 @@ void UIWidget::setLayout(const UILayoutPtr& layout)
|
||||
|
||||
bool UIWidget::setRect(const Rect& rect)
|
||||
{
|
||||
/*
|
||||
if(rect.width() > 8192 || rect.height() > 8192) {
|
||||
g_logger.error(stdext::format("attempt to set huge rect size (%s) for %s", stdext::to_string(rect), m_id));
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
// only update if the rect really changed
|
||||
Rect oldRect = m_rect;
|
||||
if(rect == oldRect)
|
||||
|
Reference in New Issue
Block a user