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

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