mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Fix for #1619, AutoCrop now takes the final image (all elements included) into the calculation.
This commit is contained in:
parent
52b00eb79a
commit
85d73cd8e0
2 changed files with 6 additions and 3 deletions
|
@ -822,7 +822,10 @@ namespace Greenshot.Drawing {
|
|||
/// </summary>
|
||||
/// <returns>true if cropped</returns>
|
||||
public bool AutoCrop() {
|
||||
Rectangle cropRectangle = ImageHelper.FindAutoCropRectangle(Image, conf.AutoCropDifference);
|
||||
Rectangle cropRectangle;
|
||||
using (Image tmpImage = GetImageForExport()) {
|
||||
cropRectangle = ImageHelper.FindAutoCropRectangle(tmpImage, conf.AutoCropDifference);
|
||||
}
|
||||
if (!IsCropPossible(ref cropRectangle)) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -18,8 +18,8 @@ Changes:
|
|||
* Editor: Element locations are now correctly updated when rotating or resizing.
|
||||
|
||||
Bugs resolved:
|
||||
* Bug #1610: Image editor: 'Obfuscate' and 'Highlight' won't rotate correctly
|
||||
|
||||
* Bug #1610: Image editor: 'Obfuscate' and 'Highlight' won't rotate correctly.
|
||||
* Bug #1619: Autocrop didn't take any elements into account.
|
||||
|
||||
|
||||
1.1.9.13-g01ce82d Windows 8.1 & Box bug-fix Release
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue