diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2011-04-20 10:34:40 (GMT) |
---|---|---|
committer | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2011-04-20 12:02:27 (GMT) |
commit | af65fd979c5ab7bd1c20d8a015a53762e991c1a4 (patch) | |
tree | 412a3e5258dd2340aea73316ba0cb01a10f17b99 /src | |
parent | 8c68e8ffa32ca26d0fd87f1349d6783e4242a9d1 (diff) | |
download | Qt-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.cpp | 2 |
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; |