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

Circle, ellipse, polygon and rectangle render correctly when their stroke-width is set to zero #261

Merged
merged 2 commits into from
Nov 18, 2016

Conversation

sovietmagic
Copy link
Contributor

I've fixed strange behaviour when circle, ellipse, polygon and rectangle will not render if their StrokeWidth is less or equal zero. I removed this check from their Path overrides and moved it to their base class's (SvgVisualElement) RenderStroke method.

  • Now stroke won't be rendered in any ancestor of SvgVisualElement that has StrokeWidth <= 0.
  • Circle, ellipse, polygon and rectangle will render only their fill if StrokeWidth <= 0.

fixes #256

RenderStroke method won't render the stroke if StrokeWidth is less or equal zero.
… ellipse, polygon and rectangle.

These shapes now render their fill, even if StrokeWidth less or equals zero.
@tebjan
Copy link
Contributor

tebjan commented Nov 18, 2016

looks very good, thanks!

@tebjan tebjan merged commit 3c3e560 into svg-net:master Nov 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Polygon not rendered if "stroke-width" = 0
2 participants