summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-06-25 15:27:40 +0100
committerwout <wout@impinc.co.uk>2013-06-25 15:27:40 +0100
commit46909dc19338e649702b6ea852120af5132bc086 (patch)
treeec1c1bb99dbdb231e68519ce30fbc642d6c0882d /src
parentb1669697a9c05401673e87e84b6713af15be9e05 (diff)
downloadsvg.js-46909dc19338e649702b6ea852120af5132bc086.tar.gz
svg.js-46909dc19338e649702b6ea852120af5132bc086.zip
Fix in rotation transform0.21
Diffstat (limited to 'src')
-rw-r--r--src/element.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/element.js b/src/element.js
index d40108d..60fbb39 100644
--- a/src/element.js
+++ b/src/element.js
@@ -233,7 +233,7 @@ SVG.extend(SVG.Element, {
/* add rotation */
if (o.rotation != 0)
- transform.push('rotate(' + o.rotation + ',' + (o.cx || this.bbox().cx) + ',' + (o.cy || this.bbox().cy) + ')')
+ transform.push('rotate(' + o.rotation + ',' + (o.cx == null ? this.bbox().cx : o.cx) + ',' + (o.cy == null ? this.bbox().cy : o.cy) + ')')
/* add scale */
if (o.scaleX != 1 || o.scaleY != 1)