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

Incorrect bounds if a path has 0 length #1156

Open
Joyphish opened this issue Apr 18, 2024 · 0 comments
Open

Incorrect bounds if a path has 0 length #1156

Joyphish opened this issue Apr 18, 2024 · 0 comments

Comments

@Joyphish
Copy link

Joyphish commented Apr 18, 2024

Description

SvgElement provides incorrect bounds if one path has 0 length

Example data

The bounds for the group in the following SVG is incorrect. The path with 0 length should be ignored when it comes to bounds.

<svg xmlns="http://www.w3.org/2000/svg" width="1056" height="816" viewBox="0 0 792 612">
<clipPath id="a"><path transform="matrix(1 0 0 -1 0 612)" d="M-396-306V918h1584V-306z"/></clipPath>
<g clip-path="url(#a)">
<path stroke-width="1.08" stroke-linecap="round" stroke-linejoin="round" fill="none" stroke="#000" d="M50 50 h100"/>
<path stroke-width="1.08" stroke-linecap="round" stroke-linejoin="round" fill="none" stroke="#000" d="M50 100 h0"/>
</g>
</svg>

Used Versions

SVG: 3.4.7
.Net Framework: 4.8.1
Operating system: Windows 11

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

No branches or pull requests

1 participant