From 2d1fb52e35af68e517f264268d5bf0a23d2132a3 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Tue, 15 Dec 2009 14:16:19 +0000 Subject: [PATCH] fixtransforms branch: Fixed ConvertToPath for elements with matrix git-svn-id: http://svg-edit.googlecode.com/svn/branches/fixtransforms@1040 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index b793d7dd..14c43462 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -2994,6 +2994,15 @@ function BatchCommand(text) { if(!getBBox) { // Replace the current element with the converted one + + // Reorient if it has a matrix + if(eltrans) { + var tlist = canvas.getTransformList(path); + if(hasMatrixTransform(tlist)) { + resetPathOrientation(path); + } + } + batchCmd.addSubCommand(new RemoveElementCommand(elem, parent)); batchCmd.addSubCommand(new InsertElementCommand(path));