소스 검색

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)
         {
             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)