Remove unneeded if in Widget::resize
This commit is contained in:
parent
0d2fd6f628
commit
34119e1c5f
@ -303,14 +303,15 @@ void Widget::resize()
|
||||
{
|
||||
assert(m_magic_number == 0xCAFEC001);
|
||||
|
||||
if (m_element)
|
||||
moveIrrlichtElement();
|
||||
moveIrrlichtElement();
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
void Widget::move(const int x, const int y, const int w, const int h)
|
||||
{
|
||||
assert(m_magic_number == 0xCAFEC001);
|
||||
|
||||
m_x = x;
|
||||
m_y = y;
|
||||
m_w = w;
|
||||
|
Loading…
Reference in New Issue
Block a user