[OpenLayers-Commits] r5700 - sandbox/tschaub/wmc/lib/OpenLayers/Format/WMC

commits at openlayers.org commits at openlayers.org
Wed Jan 9 05:20:26 EST 2008


Author: tschaub
Date: 2008-01-09 05:20:26 -0500 (Wed, 09 Jan 2008)
New Revision: 5700

Modified:
   sandbox/tschaub/wmc/lib/OpenLayers/Format/WMC/v1.js
Log:
and use the var just set

Modified: sandbox/tschaub/wmc/lib/OpenLayers/Format/WMC/v1.js
===================================================================
--- sandbox/tschaub/wmc/lib/OpenLayers/Format/WMC/v1.js	2008-01-09 10:13:02 UTC (rev 5699)
+++ sandbox/tschaub/wmc/lib/OpenLayers/Format/WMC/v1.js	2008-01-09 10:20:26 UTC (rev 5700)
@@ -485,7 +485,7 @@
         for(var i=0; i<context.layers.length; ++i) {
             layer = context.layers[i];
             if(layer instanceof OpenLayers.Layer.WMS) {
-                list.appendChild(this.write_wmc_Layer(context.layers[i]));
+                list.appendChild(this.write_wmc_Layer(layer));
             }
         }
         



More information about the Commits mailing list