[fusion-commits] r1904 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Sep 22 12:39:27 EDT 2009
Author: pagameba
Date: 2009-09-22 12:39:26 -0400 (Tue, 22 Sep 2009)
New Revision: 1904
Modified:
trunk/widgets/Legend.js
Log:
re #123, make sure layer.legend is defined before updating the layer in the legend.
Modified: trunk/widgets/Legend.js
===================================================================
--- trunk/widgets/Legend.js 2009-09-22 15:18:40 UTC (rev 1903)
+++ trunk/widgets/Legend.js 2009-09-22 16:39:26 UTC (rev 1904)
@@ -521,7 +521,7 @@
},
updateLayer: function(layer, fScale) {
- if (!layer.displayInLegend) {
+ if (!layer.displayInLegend || !layer.legend) {
return;
}
var range = layer.getScaleRange(fScale);
More information about the fusion-commits
mailing list