2022-03-30 11:18:12 +00:00
|
|
|
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp
|
|
|
|
index b3d9aaf..9dac05c 100644
|
|
|
|
--- a/src/svg/qsvghandler.cpp
|
|
|
|
+++ b/src/svg/qsvghandler.cpp
|
|
|
|
@@ -673,7 +673,8 @@ static qreal toDouble(const QChar *&str)
|
2021-03-24 23:30:28 +00:00
|
|
|
val = -val;
|
|
|
|
} else {
|
|
|
|
val = QByteArray::fromRawData(temp, pos).toDouble();
|
2022-03-30 11:18:12 +00:00
|
|
|
- if (qFpClassify(val) != FP_NORMAL)
|
2021-03-24 23:30:28 +00:00
|
|
|
+ // Do not tolerate values too wild to be represented normally by floats
|
2022-03-30 11:18:12 +00:00
|
|
|
+ if (qFpClassify(float(val)) != FP_NORMAL)
|
|
|
|
val = 0;
|
2021-03-24 23:30:28 +00:00
|
|
|
}
|
|
|
|
return val;
|
2022-03-30 11:18:12 +00:00
|
|
|
@@ -3046,6 +3047,8 @@ static QSvgStyleProperty *createRadialGradientNode(QSvgNode *node,
|
2021-03-24 23:30:28 +00:00
|
|
|
ncy = toDouble(cy);
|
|
|
|
if (!r.isEmpty())
|
|
|
|
nr = toDouble(r);
|
|
|
|
+ if (nr < 0.5)
|
|
|
|
+ nr = 0.5;
|
|
|
|
|
|
|
|
qreal nfx = ncx;
|
|
|
|
if (!fx.isEmpty())
|