Changes for the mapeditor

This commit is contained in:
Eduardo Bart
2012-07-15 02:46:56 -03:00
parent 7ffb760368
commit 98c4240446
8 changed files with 56 additions and 16 deletions

View File

@@ -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)