[fusion-commits] r1937 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Oct 8 12:15:08 EDT 2009
Author: pagameba
Date: 2009-10-08 12:15:06 -0400 (Thu, 08 Oct 2009)
New Revision: 1937
Modified:
trunk/widgets/Legend.js
Log:
Re #131, detect if there is no style correctly.
Modified: trunk/widgets/Legend.js
===================================================================
--- trunk/widgets/Legend.js 2009-10-08 15:58:02 UTC (rev 1936)
+++ trunk/widgets/Legend.js 2009-10-08 16:15:06 UTC (rev 1937)
@@ -556,7 +556,7 @@
} else {
var style = range.styles[0];
- if (!style.legendLabel) {
+ if (style && !style.legendLabel) {
style.legendLabel = layer.legendLabel;
}
if (!layer.legend.treeItem) {
More information about the fusion-commits
mailing list