Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some issues with strokeless geometry segments #16019

Merged
merged 3 commits into from
Jun 13, 2024

Conversation

grokys
Copy link
Member

@grokys grokys commented Jun 13, 2024

What does the pull request do?

Support for strokeless geometry segments was added in #15430 but there were a couple of remaining issues with that:

  • PolyLineSegment did not respect IsStroked
  • Skia GeometryImpl.GetRenderBounds did not correctly handle differing fill and stroke
  • Skia StreamGeometryImpl had some problems with non-stroked drawing
  • Skia CombinedGeometryImpl reported an empty Bounds when stroke was empty, even if fill was present

This PR fixes those issues.

grokys and others added 3 commits June 12, 2024 18:45
For polyline segment with `IsStroked = false`.
If an empty (but non-null) stroke was passed to `CombinedGeometryImpl` then its empty bounds would be used and the fill bounds ignored. Added a test and fixed that.
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0048990-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@grokys grokys added bug backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Jun 13, 2024
@grokys grokys requested a review from kekekeks June 13, 2024 13:04
@kekekeks kekekeks added this pull request to the merge queue Jun 13, 2024
Merged via the queue into master with commit eb4f575 Jun 13, 2024
12 checks passed
@kekekeks kekekeks deleted the fixes/polyline-strokeless branch June 13, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants