Browse Source

Fix SkiaPathImplementation.GetTightBounds (fixes "Something is wrong with selection")

Equbuxu 2 years ago
parent
commit
b7a71c1cb1

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

@@ -88,7 +88,7 @@ namespace PixiEditor.DrawingApi.Skia.Implementations
         public RectD GetTightBounds(VectorPath vectorPath)
         public RectD GetTightBounds(VectorPath vectorPath)
         {
         {
             SKRect rect = ManagedInstances[vectorPath.ObjectPointer].TightBounds;
             SKRect rect = ManagedInstances[vectorPath.ObjectPointer].TightBounds;
-            return new RectD(rect.Left, rect.Top, rect.Right, rect.Bottom);
+            return new RectD(rect.Left, rect.Top, rect.Width, rect.Height);
         }
         }
 
 
         public void Transform(VectorPath vectorPath, Matrix3X3 matrix)
         public void Transform(VectorPath vectorPath, Matrix3X3 matrix)