mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 03:16:58 +00:00
Add asserts to detect when MinSize > MaxSize
This commit is contained in:
parent
f454d9a0af
commit
a7145ba09c
@ -1003,11 +1003,15 @@ void Widget::getTextIconInfo(
|
||||
|
||||
void Widget::setMinSize(const gfx::Size& sz)
|
||||
{
|
||||
ASSERT(sz.w <= m_maxSize.w);
|
||||
ASSERT(sz.h <= m_maxSize.h);
|
||||
m_minSize = sz;
|
||||
}
|
||||
|
||||
void Widget::setMaxSize(const gfx::Size& sz)
|
||||
{
|
||||
ASSERT(sz.w >= m_minSize.w);
|
||||
ASSERT(sz.h >= m_minSize.h);
|
||||
m_maxSize = sz;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user