diff --git a/platform/platform-api/src/com/intellij/ui/SimpleColoredComponent.java b/platform/platform-api/src/com/intellij/ui/SimpleColoredComponent.java index 9f131ab139a6..81eb69128a35 100644 --- a/platform/platform-api/src/com/intellij/ui/SimpleColoredComponent.java +++ b/platform/platform-api/src/com/intellij/ui/SimpleColoredComponent.java @@ -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); }