Browse Source

Fix incorrect constructor being used when creating a path bounds rectangle

Equbuxu 1 year ago
parent
commit
96eb9cfe71

+ 1 - 1
src/PixiEditor.DrawingApi.Skia/Implementations/SkiaPathImplementation.cs

@@ -99,7 +99,7 @@ namespace PixiEditor.DrawingApi.Skia.Implementations
         public RectD GetBounds(VectorPath vectorPath)
         {
             SKRect rect = ManagedInstances[vectorPath.ObjectPointer].Bounds;
-            return new RectD(rect.Left, rect.Top, rect.Right, rect.Bottom);
+            return RectD.FromSides(rect.Left, rect.Right, rect.Top, rect.Bottom);
         }
 
         public void Reset(VectorPath vectorPath)