mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Fixing some NPR Exceptions.
This commit is contained in:
parent
59efe425ff
commit
9fe00fdbdb
4 changed files with 24 additions and 43 deletions
|
@ -217,7 +217,7 @@ namespace Greenshot.Drawing {
|
|||
int safetymargin = 10;
|
||||
return new Rectangle(myBounds.Left + Left - (safetymargin+lineThickness), myBounds.Top + Top - (safetymargin+lineThickness), myBounds.Width + 2*(lineThickness+safetymargin), myBounds.Height + 2*(lineThickness+safetymargin));
|
||||
}
|
||||
return new Rectangle(0, 0, _parent.Width, _parent.Height);
|
||||
return new Rectangle(0, 0, _parent?.Width??0, _parent?.Height?? 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue