From bf06b3bc18bbcefd3574f7485f48e256ee498ff5 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 2 May 2016 13:26:48 +0200 Subject: GUI: Initialize widget padding --- gui/widgets/popup.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gui/widgets') diff --git a/gui/widgets/popup.cpp b/gui/widgets/popup.cpp index b10b4fb5fe..0b2ea9fd4e 100644 --- a/gui/widgets/popup.cpp +++ b/gui/widgets/popup.cpp @@ -388,6 +388,8 @@ PopUpWidget::PopUpWidget(GuiObject *boss, int x, int y, int w, int h, const char _type = kPopUpWidget; _selectedItem = -1; + + _leftPadding = _rightPadding = 0; } void PopUpWidget::handleMouseDown(int x, int y, int button, int clickCount) { -- cgit v1.2.3