# HG changeset patch # User Thinker K.F. Li # Date 1284993823 -28800 # Node ID 0027379c962e413c2ac3f41c67b99442575ad9b3 # Parent 85f22a771e4a66d733e09d728bf48fcf411175d3 Revert changeset 76fe4afce640 diff -r 85f22a771e4a -r 0027379c962e nodejs/svg.js --- a/nodejs/svg.js Mon Sep 20 22:43:43 2010 +0800 +++ b/nodejs/svg.js Mon Sep 20 22:43:43 2010 +0800 @@ -276,10 +276,8 @@ tgt.center = center = new Object(); - //center.x = bbox.width / 2 + bbox.x; - //center.y = bbox.height / 2 + bbox.y; - center.x = bbox.x; - center.y = bbox.y; + center.x = bbox.width / 2 + bbox.x; + center.y = bbox.height / 2 + bbox.y; a = node.attr("transform-center-x"); if(!a) return 1;