浏览代码

Fix incorrect constructor being used when creating a path bounds rectangle

Equbuxu 1 年之前
父节点
当前提交
96eb9cfe71
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/PixiEditor.DrawingApi.Skia/Implementations/SkiaPathImplementation.cs

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

@@ -99,7 +99,7 @@ namespace PixiEditor.DrawingApi.Skia.Implementations
         public RectD GetBounds(VectorPath vectorPath)
         public RectD GetBounds(VectorPath vectorPath)
         {
         {
             SKRect rect = ManagedInstances[vectorPath.ObjectPointer].Bounds;
             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)
         public void Reset(VectorPath vectorPath)