From faa33c7ecd96ee1c623ec1bfece2c2d07ead56b4 Mon Sep 17 00:00:00 2001 From: Anton Tarasov Date: Thu, 3 Nov 2016 14:05:40 +0300 Subject: [PATCH] [followup] Correct JBUI-scaling of LayeredIcon --- platform/core-api/src/com/intellij/ui/LayeredIcon.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/platform/core-api/src/com/intellij/ui/LayeredIcon.java b/platform/core-api/src/com/intellij/ui/LayeredIcon.java index 36188b85d183..47fb49c1f828 100644 --- a/platform/core-api/src/com/intellij/ui/LayeredIcon.java +++ b/platform/core-api/src/com/intellij/ui/LayeredIcon.java @@ -97,10 +97,6 @@ public class LayeredIcon extends JBUI.AuxScalableJBIcon { @Override public LayeredIcon withJBUIPreScaled(boolean preScaled) { super.withJBUIPreScaled(preScaled); - for (int i = 0; i < myIcons.length; i++) { - myHShifts[i] = scaleVal(myHShifts[i], Scale.JBUI); - myVShifts[i] = scaleVal(myVShifts[i], Scale.JBUI); - } updateSize(); return this; }