diff --git a/platform/core-api/src/com/intellij/ui/RowIcon.java b/platform/core-api/src/com/intellij/ui/RowIcon.java index 988b1b0e1248..ffd75097dd35 100644 --- a/platform/core-api/src/com/intellij/ui/RowIcon.java +++ b/platform/core-api/src/com/intellij/ui/RowIcon.java @@ -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();