pullup #2596 to 2.9 branch

git-svn-id: http://svn.openlayers.org/branches/openlayers/2.9@10265 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
bartvde
2010-05-03 13:08:16 +00:00
parent 39d002488c
commit fa86eabd7a

View File

@@ -340,7 +340,7 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
}
var rotation = style.rotation;
if (node._rotation !== rotation && pos) {
if ((rotation !== undefined || node._rotation !== undefined) && pos) {
node._rotation = rotation;
rotation |= 0;
if(node.nodeName !== "svg") {