Correct remapping of shorthand curve commands (q,Q,s,S)

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1493 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2010-04-01 04:56:51 +00:00
parent 942ccd469d
commit edae9befd9
1 changed files with 2 additions and 2 deletions

View File

@ -1957,7 +1957,7 @@ function BatchCommand(text) {
break;
case 9: // relative quad (q)
case 8: // absolute quad (Q)
dstr += seg.x + "," + seg.y + " " + seg.x1 + "," + seg.y1 + " ";
dstr += seg.x1 + "," + seg.y1 + " " + seg.x + "," + seg.y + " ";
break;
case 11: // relative elliptical arc (a)
case 10: // absolute elliptical arc (A)
@ -1966,7 +1966,7 @@ function BatchCommand(text) {
break;
case 17: // relative smooth cubic (s)
case 16: // absolute smooth cubic (S)
dstr += seg.x + "," + seg.y + " " + seg.x2 + "," + seg.y2 + " ";
dstr += seg.x2 + "," + seg.y2 + " " + seg.x + "," + seg.y + " ";
break;
}
}