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

fixed parsing of arcs #1

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

vladimir-kraus
Copy link

Fixing https://bugreports.qt.io/browse/QTBUG-87327:

SVG path element is parsed by parsePathDataFast() in qsvghandler.cpp. Unfortunatelly it seems to call function parseNumbersArray() which always tries to parse an array of floats. So for arcs there is no apriori information that 4th and 5th parameter are bool flags encoded only as 0 or 1. Therefore "01.75" is decoded as value 1.75 instead of a triplet of values 0, 1, 0.75.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant