mirror of
https://github.com/greenshot/greenshot
synced 2025-07-30 19:50:11 -07:00
Fixing Bug #3531460, forgot to convert the selected rectangle to screen coordinates.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1923 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
4f64dfe676
commit
a50022c20d
2 changed files with 7 additions and 3 deletions
|
@ -784,8 +784,12 @@ namespace Greenshot.Helpers {
|
|||
}
|
||||
// Take the captureRect, this already is specified as bitmap coordinates
|
||||
capture.Crop(captureRect);
|
||||
// save for re-capturing later and show recapture context menu option
|
||||
RuntimeConfig.LastCapturedRegion = captureRect;
|
||||
|
||||
// save for re-capturing later and show recapture context menu option
|
||||
// Important here is that the location needs to be offsetted back to screen coordinates!
|
||||
Rectangle tmpRectangle = captureRect.Clone();
|
||||
tmpRectangle.Offset(capture.ScreenBounds.Location.X, capture.ScreenBounds.Location.Y);
|
||||
RuntimeConfig.LastCapturedRegion = tmpRectangle;
|
||||
HandleCapture();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue