mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-10 04:44:52 +00:00
16 lines
419 B
Diff
16 lines
419 B
Diff
|
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp
|
||
|
index 2649422..335500a 100644
|
||
|
--- a/src/svg/qsvghandler.cpp
|
||
|
+++ b/src/svg/qsvghandler.cpp
|
||
|
@@ -3606,6 +3606,8 @@ void QSvgHandler::init()
|
||
|
|
||
|
static bool detectCycles(const QSvgNode *node, QList<const QSvgUse *> active = {})
|
||
|
{
|
||
|
+ if (Q_UNLIKELY(!node))
|
||
|
+ return false;
|
||
|
switch (node->type()) {
|
||
|
case QSvgNode::DOC:
|
||
|
case QSvgNode::G:
|
||
|
|
||
|
|