mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 10:47:02 -07:00
BUG-2065: Simple fix by catching exception. Don't know what happens after that... [skip ci]
This commit is contained in:
parent
3721c1004d
commit
95903b3d28
2 changed files with 9 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue