From fecfbb1145ffa2636e3e063d80eadf16cc0c6baf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Capello?= Date: Wed, 14 Sep 2022 16:55:42 -0300 Subject: [PATCH] Fix icon's Y position when the item is in the last row of a ButtonSet with more than one row (fix #2676) --- src/app/ui/button_set.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/ui/button_set.cpp b/src/app/ui/button_set.cpp index 5f6db190e..7891b0896 100644 --- a/src/app/ui/button_set.cpp +++ b/src/app/ui/button_set.cpp @@ -96,6 +96,7 @@ void ButtonSet::Item::onPaint(ui::PaintEvent& ev) if (m_icon || isLastRow) { textRc.y -= 2*guiscale(); iconRc.y -= 1*guiscale(); + if (isLastRow && info.row > 0) iconRc.y -= 2*guiscale(); } if (!gfx::is_transparent(bgColor()))