Skip to content

Commit

Permalink
Remove unneeded if in Widget::resize
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingJellyfish committed Apr 21, 2024
1 parent 0d2fd6f commit 34119e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/guiengine/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 34119e1

Please sign in to comment.