Changeset 5826
- Timestamp:
- 01/20/08 15:11:38 (1 year ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Renderer/SVG.js (modified) (1 diff)
- trunk/openlayers/tests/Renderer/test_SVG.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Renderer/SVG.js
r5614 r5826 337 337 node.setAttributeNS(null, "r", radius); 338 338 } else { 339 this.root.removeChild(node); 339 if (node.parentNode == this.root) { 340 this.root.removeChild(node); 341 } 340 342 } 341 343 trunk/openlayers/tests/Renderer/test_SVG.html
r5430 r5826 128 128 } 129 129 130 t.plan( 3);130 t.plan(6); 131 131 132 132 var r = new OpenLayers.Renderer.SVG(document.body); … … 143 143 144 144 r.drawCircle(node, geometry, 3); 145 146 t.eq(node.getAttributeNS(null, 'cx'), '2', "cx is correct"); 147 t.eq(node.getAttributeNS(null, 'cy'), '-4', "cy is correct"); 148 t.eq(node.getAttributeNS(null, 'r'), '3', "r is correct"); 149 150 // #1274: out of bound node fails when first added 151 var geometry = { 152 x: 10000000, 153 y: 200000000 154 } 155 156 r.drawCircle(node, geometry, "blah_4000"); 145 157 146 158 t.eq(node.getAttributeNS(null, 'cx'), '2', "cx is correct");
