Fix scaling

This commit is contained in:
Julien Richard 2023-08-12 17:13:04 +02:00
commit f6ca02b436
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 // 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;