qtsvg icon indicating copy to clipboard operation
qtsvg copied to clipboard

fixed parsing of arcs

Open vladimir-kraus opened this issue 5 years ago • 1 comments
trafficstars

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.

vladimir-kraus avatar Oct 13 '20 21:10 vladimir-kraus

CLA assistant check
All committers have signed the CLA.

cla-assistant[bot] avatar Nov 15 '24 12:11 cla-assistant[bot]