Fix scaling with fixed ratio

This commit is contained in:
Julien Richard 2023-08-26 18:33:35 +02:00
commit fa80e2c7f4
No known key found for this signature in database

View file

@ -202,7 +202,7 @@ namespace Greenshot.Editor.Helpers
{
// scaled rectangle (ratio) would be taller than original
// 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;