don't forget about Y param

This commit is contained in:
Konstantin Bulenkov
2013-02-26 16:10:30 +01:00
parent 7c8abe817e
commit 0a2f5908e4
@@ -68,9 +68,12 @@ public class RowIcon implements Icon {
for (Icon icon : myIcons) {
if (icon == null) continue;
switch (myAlignment) {
case TOP: _y = y;break;
case CENTER: _y = (myHeight - icon.getIconHeight())/2;break;
case BOTTOM: _y = (myHeight - icon.getIconHeight());break;
case TOP: _y = y;
break;
case CENTER: _y = y + (myHeight - icon.getIconHeight())/2;
break;
case BOTTOM: _y = y + (myHeight - icon.getIconHeight());
break;
}
icon.paintIcon(c, g, _x, _y);
_x += icon.getIconWidth();