rework splitter implementation

This commit is contained in:
Eduardo Bart
2012-03-23 00:06:00 -03:00
parent 79a1d66f3f
commit b301aa1a2b
4 changed files with 51 additions and 56 deletions

View File

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