diff options
Diffstat (limited to 'src/transform.js')
-rw-r--r-- | src/transform.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/transform.js b/src/transform.js index e686ce4..d1db74a 100644 --- a/src/transform.js +++ b/src/transform.js @@ -201,9 +201,7 @@ SVG.extend(SVG.Element, { toParent: function(parent) { if(this == parent) return this var ctm = this.screenCTM() - var temp = parent.rect(1,1) - var pCtm = temp.screenCTM().inverse() - temp.remove() + var pCtm = parent.screenCTM().inverse() this.addTo(parent).untransform().transform(pCtm.multiply(ctm)) |