diff options
author | crupest <crupest@outlook.com> | 2022-03-08 17:24:07 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-03-08 17:24:07 +0800 |
commit | 78f5221e8fbab510bb8b5ac268b7d42bed762961 (patch) | |
tree | 2066be748d39411e4dd6a74a538df4ca4a213543 /src/platform/graphics | |
parent | 62a0c3f1785e789357c892d94b3ea0bc3ea6833e (diff) | |
download | cru-78f5221e8fbab510bb8b5ac268b7d42bed762961.tar.gz cru-78f5221e8fbab510bb8b5ac268b7d42bed762961.tar.bz2 cru-78f5221e8fbab510bb8b5ac268b7d42bed762961.zip |
...
Diffstat (limited to 'src/platform/graphics')
-rw-r--r-- | src/platform/graphics/Geometry.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/platform/graphics/Geometry.cpp b/src/platform/graphics/Geometry.cpp index 389b97f5..32ba0d6d 100644 --- a/src/platform/graphics/Geometry.cpp +++ b/src/platform/graphics/Geometry.cpp @@ -192,7 +192,8 @@ void IGeometryBuilder::ParseAndApplySvgPathData(StringView path_d) { Index processed_count = 0; - auto result = path_d.substr(position).ParseToFloat(&processed_count); + auto result = path_d.substr(position).ParseToFloat( + &processed_count, StringToFloatFlags::kAllowTrailingJunk); if (std::isnan(result)) throw Exception(u"Invalid svg path data number."); |