Skip to content

Commit

Permalink
Merge pull request PintaProject#118 from codeprof/patch-3
Browse files Browse the repository at this point in the history
prevent inlining, as this would change the result of GetExecutingAssembly()
  • Loading branch information
cameronwhite committed Apr 13, 2016
2 parents 2861d3e + fc7754a commit ab86ea7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Pinta.Resources/ResourceManager.cs
Original file line number Diff line number Diff line change
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 ab86ea7

Please sign in to comment.