From edae9befd97c70f3f8b6c1f686f4532c118b8468 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Thu, 1 Apr 2010 04:56:51 +0000 Subject: [PATCH] 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 --- editor/svgcanvas.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index c6ff35e0..4cd98c88 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -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; } }