mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -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;
|
||||
|
||||
// FEATURE-995: Added a check for the current mouse cursor location, to paste the image on that location.
|
||||
var mousePos = PointToClient(MousePosition);
|
||||
if (Bounds.Contains(mousePos))
|
||||
var mousePositionOnControl = PointToClient(MousePosition);
|
||||
if (ClientRectangle.Contains(mousePositionOnControl))
|
||||
{
|
||||
x = mousePos.X;
|
||||
y = mousePos.Y;
|
||||
x = mousePositionOnControl.X;
|
||||
y = mousePositionOnControl.Y;
|
||||
}
|
||||
|
||||
foreach (Image clipboardImage in ClipboardHelper.GetImages(clipboard))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue