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

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