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
master
Alexis Deveria 2009-12-15 14:16:19 +00:00
parent 806f851107
commit 2d1fb52e35
1 changed files with 9 additions and 0 deletions

View File

@ -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));