Fix icon's Y position when the item is in the last row of a ButtonSet with more than one row (fix #2676)

This commit is contained in:
Martín Capello 2022-09-14 16:55:42 -03:00 committed by David Capello
parent 6e57546aa9
commit fecfbb1145

View File

@ -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()))