From cf155200a7493776c97cfc921c684da84ea79fb9 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Tue, 12 May 2020 20:31:59 +0200 Subject: [PATCH] Don't inflate geometry by stroke width twice. We're already passing the stroke width to `UpdatePathCache` which should include it in its calculations. Here we were applying the stroke width twice. --- src/Skia/Avalonia.Skia/GeometryImpl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Skia/Avalonia.Skia/GeometryImpl.cs b/src/Skia/Avalonia.Skia/GeometryImpl.cs index 1d78609f5d..879b18742e 100644 --- a/src/Skia/Avalonia.Skia/GeometryImpl.cs +++ b/src/Skia/Avalonia.Skia/GeometryImpl.cs @@ -95,7 +95,7 @@ namespace Avalonia.Skia UpdatePathCache(strokeWidth); } - return _pathCache.CachedGeometryRenderBounds.Inflate(strokeWidth / 2.0); + return _pathCache.CachedGeometryRenderBounds; } ///