Skip to content

Commit

Permalink
prevent inlining, as this would change the result of GetExecutingAsse…
Browse files Browse the repository at this point in the history
…mbly()
  • Loading branch information
codeprof committed Apr 11, 2016
1 parent 2861d3e commit fc7754a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Pinta.Resources/ResourceManager.cs
Expand Up @@ -28,6 +28,7 @@
using System.IO;
using Gdk;
using System.Reflection;
using System.Runtime.CompilerServices;

namespace Pinta.Resources
{
Expand All @@ -44,6 +45,7 @@ private static bool HasResource(Assembly asm, string name)
return false;
}

[MethodImpl(MethodImplOptions.NoInlining)]
public static Pixbuf GetIcon (string name, int size)
{
Gdk.Pixbuf result = null;
Expand Down

0 comments on commit fc7754a

Please sign in to comment.