Skip to content

Unconditionally stop parsing after the svg end tag

Andreas Sturmlechner requested to merge asturmlechner/qtsvg:QTBUG-99407 into kde/5.15

A QSvghandler may be created either with an external QXmlStreamReader object, or with a bytearray/iodevice, in which case it will create its own stream reader. The check to end parisng at the tag was active only in the first case. This could result in different behavior when reading an svg image from file vs. reading it from a bytearray or resource.

Fixes: QTBUG-99407 Pick-to: 6.3 6.2 5.15 Change-Id: I187b39256f2b16ea952a3ae1b77c067ff96e4155 Reviewed-by: Allan Sandfeld Jensen Reviewed-by: Robert Löhning (cherry picked from commit 1749388c)

Merge request reports