mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 04:53:27 +02:00
fix death issues, improve text messages
This commit is contained in:
@@ -261,7 +261,7 @@ public:
|
||||
return tmp;
|
||||
}
|
||||
|
||||
void bound(const TRect<T> &r) {
|
||||
void bind(const TRect<T> &r) {
|
||||
if(isNull() || r.isNull())
|
||||
return;
|
||||
|
||||
|
@@ -487,7 +487,7 @@ void UIWidget::bindRectToParent()
|
||||
UIWidgetPtr parent = getParent();
|
||||
if(parent) {
|
||||
Rect parentRect = parent->getRect();
|
||||
boundRect.bound(parentRect);
|
||||
boundRect.bind(parentRect);
|
||||
}
|
||||
|
||||
setRect(boundRect);
|
||||
|
Reference in New Issue
Block a user