mirror of
https://github.com/greenshot/greenshot
synced 2025-08-13 02:07:07 -07:00
Fix for #1500
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2569 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
7275ad6222
commit
c6c331c0e2
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,9 @@ namespace Greenshot.Drawing.Filters {
|
||||||
int blurRadius = GetFieldValueAsInt(FieldType.BLUR_RADIUS);
|
int blurRadius = GetFieldValueAsInt(FieldType.BLUR_RADIUS);
|
||||||
double previewQuality = GetFieldValueAsDouble(FieldType.PREVIEW_QUALITY);
|
double previewQuality = GetFieldValueAsDouble(FieldType.PREVIEW_QUALITY);
|
||||||
Rectangle applyRect = ImageHelper.CreateIntersectRectangle(applyBitmap.Size, rect, Invert);
|
Rectangle applyRect = ImageHelper.CreateIntersectRectangle(applyBitmap.Size, rect, Invert);
|
||||||
|
if (applyRect.Width == 0 || applyRect.Height == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
GraphicsState state = graphics.Save();
|
GraphicsState state = graphics.Save();
|
||||||
if (Invert) {
|
if (Invert) {
|
||||||
graphics.SetClip(applyRect);
|
graphics.SetClip(applyRect);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue