[ui] SimpleColoredComponent: fix missing gap when myIconOnTheRight=true

This commit is contained in:
Yann Cébron
2017-11-13 14:57:44 +01:00
parent 276d27c5d7
commit 93ebcf1316
@@ -722,7 +722,7 @@ public class SimpleColoredComponent extends JComponent implements Accessible, Co
}
doPaintTextBackground(g, offset);
offset = doPaintText(g, offset, myFocusBorderAroundIcon || icon == null);
offset = doPaintText(g, offset, myFocusBorderAroundIcon || icon == null) + myIconTextGap;
if (icon != null && myIconOnTheRight) {
doPaintIcon(g, icon, offset);
}