-
Notifications
You must be signed in to change notification settings - Fork 692
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
XAML Path geometry parsing problem with relative point #4741
Comments
@codendone FYI |
Possibly the same issue as #3077 |
@nCastle1 Yeah. Same issue. But bug is not in the rendering, but in the parsing. @StephenLPeters @codendone I dug a little deeper and I found this. WPF Parse result
WinUI 3 Parse result
Please note that 2 and 4 PathFigures has different result. Don't mind the type of segment.
But for absolute: WPF Parse result
WinUI 3 Parse result
Second PathFigure:
As you can see WPF has same parsing result in both cases. But WinUI has parsing issue with relative points. |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Describe the bug
There is a problem with parsing the SVG path if relative coordinates are used.
Steps to reproduce the bug
Use next string as data of Path:
m 6 6 h 5 v 5 H 6 Z m 8 0 h 5 v 5 H 14 Z M 0 0 V 17 H 25 V 0 Z m 3 3 H 22 V 14 H 3 Z
or
Expected behavior
Screenshots
What I've got:
Version Info
NuGet package version:
[WinUI 3 - Project Reunion 0.5: 0.5.0]
Additional context
If I convert coordinates to absolute, then it will be displayed correctly everywhere.
Absolute:
M 6 6 H 11 V 11 H 6 Z M 14 6 H 19 V 11 H 14 Z M 0 0 V 17 H 25 V 0 Z M 3 3 H 22 V 14 H 3 Z
What I've got:
The text was updated successfully, but these errors were encountered: