From 2dc364f417cffb7f33745433a13c23181c9b4eb5 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 22 Jun 2006 18:47:51 +0000 Subject: [PATCH] In IE, we use the image hack, so changing the img.src doesn't help. git-svn-id: http://svn.openlayers.org/trunk/openlayers@679 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control/MouseToolbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Control/MouseToolbar.js b/lib/OpenLayers/Control/MouseToolbar.js index 92311835ff..056e56868f 100644 --- a/lib/OpenLayers/Control/MouseToolbar.js +++ b/lib/OpenLayers/Control/MouseToolbar.js @@ -170,7 +170,7 @@ OpenLayers.Control.MouseToolbar.prototype = switchModeTo: function(mode) { if (mode != this.mode) { if (this.mode) { - this.buttons[this.mode].firstChild.src = this.buttons[this.mode].imgLocation; + OpenLayers.Util.modifyAlphaImageDiv(this.buttons[this.mode], null, null, null, this.buttons[this.mode].imgLocation); } if (this.mode == "measure" && mode != "measure") { for(var i = 0; i < this.measureDivs.length; i++) { @@ -182,7 +182,7 @@ OpenLayers.Control.MouseToolbar.prototype = this.measureStart = null; } this.mode = mode; - this.buttons[mode].firstChild.src = this.buttons[mode].activeImgLocation; + OpenLayers.Util.modifyAlphaImageDiv(this.buttons[mode], null, null, null, this.buttons[mode].activeImgLocation); } },