BUG-2065: Simple fix by catching exception. Don't know what happens after that... [skip ci]

This commit is contained in:
Robin 2016-12-20 22:34:18 +01:00
commit 95903b3d28
2 changed files with 9 additions and 2 deletions

View file

@ -150,7 +150,14 @@ namespace Greenshot.Drawing.Adorners
targetGraphics.PixelOffsetMode = PixelOffsetMode.Half;
targetGraphics.InterpolationMode = InterpolationMode.NearestNeighbor;
targetGraphics.FillRectangle(Brushes.Black, bounds.X, bounds.Y, bounds.Width , bounds.Height);
try
{
targetGraphics.FillRectangle(Brushes.Black, bounds.X, bounds.Y, bounds.Width, bounds.Height);
}
catch
{
// Ignore, BUG-2065
}
targetGraphics.Restore(state);
}
}