qtsvg
qtsvg copied to clipboard
fixed parsing of arcs
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.