Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ImportedProjects
SVG
Commits
aa1aa3f5
Commit
aa1aa3f5
authored
Feb 17, 2018
by
Hein Htat
Committed by
mrbean-bremen
Dec 17, 2018
Browse files
Fix path parsing mistaking 'E' as a command instead of an exponent
parent
0453531d
Changes
1
Show whitespace changes
Inline
Side-by-side
Source/Paths/SvgPathBuilder.cs
View file @
aa1aa3f5
...
...
@@ -257,7 +257,7 @@ namespace Svg
for
(
var
i
=
0
;
i
<
path
.
Length
;
i
++)
{
string
command
;
if
(
char
.
IsLetter
(
path
[
i
])
&&
path
[
i
]
!=
'e'
)
//e is used in scientific notiation. but not svg path
if
(
char
.
IsLetter
(
path
[
i
])
&&
path
[
i
]
!=
'e'
&&
path
[
i
]
!=
'E'
)
//e is used in scientific notiation. but not svg path
{
command
=
path
.
Substring
(
commandStart
,
i
-
commandStart
).
Trim
();
commandStart
=
i
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment