projects
/
platform
/
core
/
graphics
/
tizenvg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
common Util: Skip if there is a space after the dot
[platform/core/graphics/tizenvg.git]
/
src
/
loaders
/
svg
/
tvgSvgUtil.cpp
diff --git
a/src/loaders/svg/tvgSvgUtil.cpp
b/src/loaders/svg/tvgSvgUtil.cpp
index
1f1fe2a
..
11c861f
100644
(file)
--- a/
src/loaders/svg/tvgSvgUtil.cpp
+++ b/
src/loaders/svg/tvgSvgUtil.cpp
@@
-140,6
+140,8
@@
float svgUtilStrtof(const char *nPtr, char **endPtr)
}
val += static_cast<float>(decimalPart) / static_cast<float>(pow10);
a = iter;
+ //skip if there is a space after the dot.
+ if (isspace(*a)) goto success;
}
//Optional: exponent