Skip to content

Commit c210829

Browse files
committed
Fix apparent oversight in ButtonWidget m_rect initialization.
1 parent 1ba413e commit c210829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/editor/button_widget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ButtonWidget::ButtonWidget(SpritePtr sprite, const Vector& pos,
2525
std::function<void()> sig_click) :
2626
m_sprite(std::move(sprite)),
2727
m_rect(pos, Sizef(static_cast<float>(m_sprite->get_width()),
28-
static_cast<float>(m_sprite->get_width()))),
28+
static_cast<float>(m_sprite->get_height()))),
2929
m_grab(false),
3030
m_hover(false),
3131
m_sig_click(std::move(sig_click))

0 commit comments

Comments
 (0)