From 97694ddcf763fd21a8c59c56d80e86facd9abf2a Mon Sep 17 00:00:00 2001 From: Schuyler Erle Date: Fri, 23 Jun 2006 15:31:41 +0000 Subject: [PATCH] Merged in missing fix for #95 from r678:r679. git-svn-id: http://svn.openlayers.org/branches/openlayers/1.0@718 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 1b4e682cfe..e0afdd527b 100644 --- a/lib/OpenLayers/Control/MouseToolbar.js +++ b/lib/OpenLayers/Control/MouseToolbar.js @@ -171,7 +171,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++) { @@ -183,7 +183,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); } },