center icon

This commit is contained in:
Dmitry Jemerov
2012-02-24 12:07:37 +01:00
parent fe726c3795
commit c29ed4c656
@@ -42,7 +42,7 @@ public abstract class MoreTabsIcon {
}
protected int getIconX(final Rectangle iconRec) {
return iconRec.x + iconRec.width / 2 - (myIcon.getIconWidth() + 2) / 2;
return iconRec.x + iconRec.width / 2 - (myIcon.getIconWidth()) / 2;
}
protected int getIconY(final Rectangle iconRec) {