From 93ebcf1316b63089d287d2b247ba19a93fc397eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Mon, 13 Nov 2017 14:56:02 +0100 Subject: [PATCH] [ui] SimpleColoredComponent: fix missing gap when myIconOnTheRight=true --- .../src/com/intellij/ui/SimpleColoredComponent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }