Changeset 7669
- Timestamp:
- 08/01/08 14:43:31 (4 months ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Renderer/SVG.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Renderer/SVG.js
r7634 r7669 244 244 var size = offset * 2; 245 245 var id = this.importSymbol(style.graphicName); 246 var href = "#" + id; 246 247 pos = this.getPosition(node); 247 248 widthFactor = this.symbolSize[id] / size; 248 node.setAttributeNS(this.xlinkns, "href", "#" + id); 249 // Only set the href if it is different from the current one. 250 // This is a workaround for strange rendering behavior in FF3. 251 if (node.getAttribute("href") != href) { 252 node.setAttributeNS(this.xlinkns, "href", href); 253 } 249 254 node.setAttributeNS(null, "width", size); 250 255 node.setAttributeNS(null, "height", size);
