Browse Source

Fix RectI AspectFit

Equbuxu 2 years ago
parent
commit
da463df8e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/PixiEditor.DrawingApi.Core/Numerics/RectI.cs

+ 1 - 1
src/PixiEditor.DrawingApi.Core/Numerics/RectI.cs

@@ -200,7 +200,7 @@ public struct RectI : IEquatable<RectI>
     {
     {
         RectD rectD = (RectD)rect;
         RectD rectD = (RectD)rect;
         RectD thisD = (RectD)this;
         RectD thisD = (RectD)this;
-        RectD aspect = rectD.AspectFit(thisD);
+        RectD aspect = thisD.AspectFit(rectD);
         return new RectI((int)aspect.Left, (int)aspect.Top, (int)aspect.Width, (int)aspect.Height);
         return new RectI((int)aspect.Left, (int)aspect.Top, (int)aspect.Width, (int)aspect.Height);
     }
     }