From 9b446e75cbdbc20e239a7171b3f9ccab09927a28 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 15 Jun 2007 13:36:28 +0000 Subject: [PATCH] Don't try and apply pngfix to OpenLayers tile images. --- public/javascripts/pngfix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/pngfix.js b/public/javascripts/pngfix.js index 0fdefc6b2..e6ca5d6f7 100644 --- a/public/javascripts/pngfix.js +++ b/public/javascripts/pngfix.js @@ -4,7 +4,7 @@ function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or high { var img = document.images[i] var imgName = img.src.toUpperCase() - if (imgName.indexOf('.PNG') > 0) + if (imgName.indexOf('.PNG') > 0 && !img.id.match(/^OpenLayers/)) { var imgID = (img.id) ? "id='" + img.id + "' " : "" var imgClass = (img.className) ? "class='" + img.className + "' " : "" -- 2.39.5