From 720c8507f72f626d7efdada434f291be74402166 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Sun, 10 Sep 2006 03:43:16 +0000 Subject: [PATCH] If isBaseLayer hasn't been set at all, it's undefined, not null. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1428 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/WMS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer/WMS.js b/lib/OpenLayers/Layer/WMS.js index 91d4247cbc..b1cabef880 100644 --- a/lib/OpenLayers/Layer/WMS.js +++ b/lib/OpenLayers/Layer/WMS.js @@ -47,7 +47,7 @@ OpenLayers.Layer.WMS.prototype = // unless explicitly set in options, if the layer is transparent, // it will be an overlay - if ((options == null) || (options.isBaseLayer == null)) { + if ((options == null) || !(options.isBaseLayer)) { this.isBaseLayer = ((this.params.TRANSPARENT != "true") && (this.params.TRANSPARENT != true)); }