From af65fd979c5ab7bd1c20d8a015a53762e991c1a4 Mon Sep 17 00:00:00 2001 From: Kim Motoyoshi Kalland Date: Wed, 20 Apr 2011 12:34:40 +0200 Subject: Handle uppercase 'E' when parsing numbers in SVGs. Task-number: QT-4881 Reviewed-by: Samuel --- src/svg/qsvghandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp index 9698860..3fbc08c 100644 --- a/src/svg/qsvghandler.cpp +++ b/src/svg/qsvghandler.cpp @@ -584,7 +584,7 @@ static qreal toDouble(const QChar *&str) ++str; } bool exponent = false; - if (*str == QLatin1Char('e') && pos < maxLen) { + if ((*str == QLatin1Char('e') || *str == QLatin1Char('E')) && pos < maxLen) { exponent = true; temp[pos++] = 'e'; ++str; -- cgit v0.12