Blame SOURCES/qtsvg-5.15.2-clamp-parsed-doubles-to-float-representtable-values.patch

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