Browse Source

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.
pull/3909/head
Steven Kirk 6 years ago
parent
commit
cf155200a7
  1. 2
      src/Skia/Avalonia.Skia/GeometryImpl.cs

2
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;
}
/// <inheritdoc />

Loading…
Cancel
Save