summaryrefslogtreecommitdiffstats
path: root/src/svg
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2011-04-20 12:34:40 +0200
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2011-04-20 14:02:27 +0200
commitaf65fd979c5ab7bd1c20d8a015a53762e991c1a4 (patch)
tree412a3e5258dd2340aea73316ba0cb01a10f17b99 /src/svg
parent8c68e8ffa32ca26d0fd87f1349d6783e4242a9d1 (diff)
Handle uppercase 'E' when parsing numbers in SVGs.
Task-number: QT-4881 Reviewed-by: Samuel
Diffstat (limited to 'src/svg')
-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 96988607fb..3fbc08cc4b 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;