Fix scaling with fixed ratio (#514)

This commit is contained in:
Julien Richard 2025-05-23 14:43:28 +02:00 committed by GitHub
commit 7b88f7a55a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;