mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 13:10:00 -07:00
Found a scroll problem in the CropContainer, this might be similar...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1757 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
5b94650e81
commit
1beb0656f4
1 changed files with 6 additions and 2 deletions
|
@ -241,12 +241,16 @@ namespace Greenshot.Drawing {
|
||||||
int safetymargin = 10;
|
int safetymargin = 10;
|
||||||
return new Rectangle((myBounds.Left + Left) - (safetymargin+lineThickness), (myBounds.Top + Top) - (safetymargin+lineThickness), myBounds.Width + (2*(lineThickness+safetymargin)), myBounds.Height + (2*(lineThickness+safetymargin)));
|
return new Rectangle((myBounds.Left + Left) - (safetymargin+lineThickness), (myBounds.Top + Top) - (safetymargin+lineThickness), myBounds.Width + (2*(lineThickness+safetymargin)), myBounds.Height + (2*(lineThickness+safetymargin)));
|
||||||
} else {
|
} else {
|
||||||
return parent.Bounds;
|
return new Rectangle(0, 0, parent.Width, parent.Height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// FreehandContainer are regarded equal if they are of the same type and their paths are equal.
|
/// <summary>
|
||||||
|
/// FreehandContainer are regarded equal if they are of the same type and their paths are equal.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="obj"></param>
|
||||||
|
/// <returns></returns>
|
||||||
public override bool Equals(object obj) {
|
public override bool Equals(object obj) {
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
if(obj != null && GetType().Equals(obj.GetType())) {
|
if(obj != null && GetType().Equals(obj.GetType())) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue