mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 06:23:24 -07:00
Fix scaling with fixed ratio
This commit is contained in:
parent
a3e65fee6f
commit
fa80e2c7f4
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ namespace Greenshot.Editor.Helpers
|
||||||
{
|
{
|
||||||
// scaled rectangle (ratio) would be taller than original
|
// scaled rectangle (ratio) would be taller than original
|
||||||
// keep width and tweak height to maintain aspect ratio
|
// keep width and tweak height to maintain aspect ratio
|
||||||
newSize = newSize.ChangeWidth(selectedSize.Width / originalRatio * flippedRatioSign);
|
newSize = newSize.ChangeHeight(selectedSize.Width / originalRatio * flippedRatioSign);
|
||||||
}
|
}
|
||||||
|
|
||||||
return newSize;
|
return newSize;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue