diff --git a/platform/util/ui/src/com/intellij/openapi/util/IconLoader.java b/platform/util/ui/src/com/intellij/openapi/util/IconLoader.java index bf23ff50d894..aeacf6eb0b99 100644 --- a/platform/util/ui/src/com/intellij/openapi/util/IconLoader.java +++ b/platform/util/ui/src/com/intellij/openapi/util/IconLoader.java @@ -846,7 +846,9 @@ public final class IconLoader { ImageIcon icon = scaledIconCache.getOrScaleIcon(1f); if (icon != null) { - this.realIcon = icon.getIconWidth() < 50 && icon.getIconHeight() < 50 ? icon : new SoftReference<>(icon); + if (!SVGLoader.isSelectionContext()) { + this.realIcon = icon.getIconWidth() < 50 && icon.getIconHeight() < 50 ? icon : new SoftReference<>(icon); + } return icon; } }