summaryrefslogtreecommitdiffstats
path: root/src/svg/qsvggraphics_p.h
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@qt.io>2023-09-13 13:17:53 +0200
committerPaul Olav Tvete <paul.tvete@qt.io>2023-09-15 08:32:24 +0000
commit500e99e97f49578cdc5cc03c9d79504fd37bd986 (patch)
treef69934b62feb9f320d03a1842007a64052af7e5c /src/svg/qsvggraphics_p.h
parentce93553732fca945533f7956d09b3f1f2a74e1b3 (diff)
Refuse to load SVGs with circular references
Circular references are not allowed according to the SVG specification. Fixes: QTBUG-113042 Pick-to: 6.6 6.6.0 6.5 6.2 Change-Id: I50cf1ef56c01cbe32066101966404fa55638c8e1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/svg/qsvggraphics_p.h')
-rw-r--r--src/svg/qsvggraphics_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/svg/qsvggraphics_p.h b/src/svg/qsvggraphics_p.h
index 4135a5f..9bb005b 100644
--- a/src/svg/qsvggraphics_p.h
+++ b/src/svg/qsvggraphics_p.h
@@ -222,6 +222,7 @@ public:
bool isResolved() const { return m_link != nullptr; }
QString linkId() const { return m_linkId; }
void setLink(QSvgNode *link) { m_link = link; }
+ QSvgNode *link() const { return m_link; }
private:
QSvgNode *m_link;