Browse Source

Fix icons with public accessibility.

pull/1704/head
Siegfried Pammer 6 years ago
parent
commit
09da5b711c
  1. 5
      ILSpy/Images/Images.cs

5
ILSpy/Images/Images.cs

@ -325,7 +325,10 @@ namespace ICSharpCode.ILSpy @@ -325,7 +325,10 @@ namespace ICSharpCode.ILSpy
protected void PreloadPublicIconToCache(T icon, object image)
{
var iconKey = (icon, AccessOverlayIcon.Public, false);
cache.Add(iconKey, image);
if (image is ImageSource img)
cache.Add(iconKey, img);
else
cache.Add(iconKey, new DrawingImage((DrawingGroup)image));
}
public object GetIcon(T icon, AccessOverlayIcon overlay, bool isStatic)

Loading…
Cancel
Save