mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 13:10:00 -07:00
FEATURE-995: Fine tuning of the paste logic.
This commit is contained in:
parent
9a7b95e93d
commit
fbba70fce4
1 changed files with 4 additions and 4 deletions
|
@ -1820,11 +1820,11 @@ namespace Greenshot.Drawing
|
||||||
int y = 10;
|
int y = 10;
|
||||||
|
|
||||||
// FEATURE-995: Added a check for the current mouse cursor location, to paste the image on that location.
|
// FEATURE-995: Added a check for the current mouse cursor location, to paste the image on that location.
|
||||||
var mousePos = PointToClient(MousePosition);
|
var mousePositionOnControl = PointToClient(MousePosition);
|
||||||
if (Bounds.Contains(mousePos))
|
if (ClientRectangle.Contains(mousePositionOnControl))
|
||||||
{
|
{
|
||||||
x = mousePos.X;
|
x = mousePositionOnControl.X;
|
||||||
y = mousePos.Y;
|
y = mousePositionOnControl.Y;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (Image clipboardImage in ClipboardHelper.GetImages(clipboard))
|
foreach (Image clipboardImage in ClipboardHelper.GetImages(clipboard))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue