mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Cleanup, and fixed a bug in the CloneArea method of the ImageHelper.cs
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2506 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
652ca64e9f
commit
ec5840550a
4 changed files with 29 additions and 12 deletions
|
@ -1197,6 +1197,8 @@ namespace GreenshotPlugin.Core {
|
|||
// Make sure the source is not Rectangle.Empty
|
||||
if (Rectangle.Empty.Equals(sourceRect)) {
|
||||
sourceRect = new Rectangle(0, 0, sourceImage.Width, sourceImage.Height);
|
||||
} else {
|
||||
sourceRect.Intersect(bitmapRect);
|
||||
}
|
||||
|
||||
// If no pixelformat is supplied
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue