summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2011-04-20 10:34:40 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2011-04-20 12:02:27 (GMT)
commitaf65fd979c5ab7bd1c20d8a015a53762e991c1a4 (patch)
tree412a3e5258dd2340aea73316ba0cb01a10f17b99 /src
parent8c68e8ffa32ca26d0fd87f1349d6783e4242a9d1 (diff)
downloadQt-af65fd979c5ab7bd1c20d8a015a53762e991c1a4.zip
Qt-af65fd979c5ab7bd1c20d8a015a53762e991c1a4.tar.gz
Qt-af65fd979c5ab7bd1c20d8a015a53762e991c1a4.tar.bz2
Handle uppercase 'E' when parsing numbers in SVGs.
Task-number: QT-4881 Reviewed-by: Samuel
Diffstat (limited to 'src')
-rw-r--r--src/svg/qsvghandler.cpp2
1 files changed, 1 insertions, 1 deletions
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;