diff options
author | Hatem ElKharashy <hatem.elkharashy@qt.io> | 2024-02-05 16:13:25 +0200 |
---|---|---|
committer | Hatem ElKharashy <hatem.elkharashy@qt.io> | 2024-02-06 13:19:40 +0200 |
commit | b2d9b36c15654c89f0eecabde5f2edf32ea14162 (patch) | |
tree | 7e5955a1ed245391fa1917d6aa61d77f1587648e /src/svg/qsvghandler_p.h | |
parent | 96f8357d5e68fdf00d0ae1a4561ba56727615f2d (diff) |
Skip parsing nested svg element
The SVG Tiny 1.2 does not allow nested svg elements in an SVG Document.
With the current implementation, the parser will create more than one
QSvgTinyDocument class, and it will stop parsing the SVG file at a wrong
position, because the done flag does not cover this case.
Fixes: QTBUG-121981
Change-Id: Idbba6524c6acbad20946cfe47f4f812ce6e11d23
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/svg/qsvghandler_p.h')
-rw-r--r-- | src/svg/qsvghandler_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/svg/qsvghandler_p.h b/src/svg/qsvghandler_p.h index 045014d..df5078c 100644 --- a/src/svg/qsvghandler_p.h +++ b/src/svg/qsvghandler_p.h @@ -120,7 +120,8 @@ private: { Unknown, Graphics, - Style + Style, + Doc }; QStack<CurrentNode> m_skipNodes; |