mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
Correction for the previous correction...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2539 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
f7c0dd744b
commit
8a13a0d5a6
1 changed files with 8 additions and 0 deletions
|
@ -1436,9 +1436,17 @@ namespace Greenshot.Drawing {
|
|||
int offsetY = 0;
|
||||
if (drawableContainerListBounds.Right > Bounds.Right) {
|
||||
offsetX = Bounds.Right - drawableContainerListBounds.Right;
|
||||
// Correction for the correction
|
||||
if (drawableContainerListBounds.Left + offsetX < 0) {
|
||||
offsetX += Math.Abs(drawableContainerListBounds.Left + offsetX);
|
||||
}
|
||||
}
|
||||
if (drawableContainerListBounds.Bottom > Bounds.Bottom) {
|
||||
offsetY = Bounds.Bottom - drawableContainerListBounds.Bottom;
|
||||
// Correction for the correction
|
||||
if (drawableContainerListBounds.Top + offsetY < 0) {
|
||||
offsetY += Math.Abs(drawableContainerListBounds.Top + offsetY);
|
||||
}
|
||||
}
|
||||
moveOffset = new Point(offsetX, offsetY);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue