We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99e876d commit 356134bCopy full SHA for 356134b
1 file changed
src/com/mxgraph/svg2xml/mxPathParser.java
@@ -100,7 +100,10 @@ else if (prevPathType == 'M')
100
break;
101
case 'z':
102
case 'Z':
103
- closePath();
+ if (Character.toLowerCase(prevPathType) != 'z')
104
+ {
105
+ closePath();
106
+ }
107
108
case 'm':
109
movetoRel(currPathString);
@@ -168,6 +171,8 @@ else if (prevPathType == 'M')
168
171
{
169
172
svgPath = svgPath.substring(nextPartStartIndex, svgPath.length());
170
173
}
174
+
175
+ prevPathType = currPathType;
176
177
while (svgPath.length() > 0);
178
0 commit comments