[fusion-commits] r2727 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu May 30 21:14:41 PDT 2013
Author: jng
Date: 2013-05-30 21:14:40 -0700 (Thu, 30 May 2013)
New Revision: 2727
Modified:
trunk/widgets/Legend.js
Log:
#572: Fix display for styles without labels. If they don't have labels, we'll use empty strings and *not* use the layer's label as it did before this submission.
Modified: trunk/widgets/Legend.js
===================================================================
--- trunk/widgets/Legend.js 2013-05-31 04:07:49 UTC (rev 2726)
+++ trunk/widgets/Legend.js 2013-05-31 04:14:40 UTC (rev 2727)
@@ -802,7 +802,7 @@
//Set the label. Use style label IFF there are more than one style rule.
//Otherwise layer's legend label takes precedence
- if (style && style.legendLabel && layer.legend.currentRange.styles.length > 1) {
+ if (style && layer.legend.currentRange.styles.length > 1) {
opt.label = style.legendLabel == '' ? ' ' : style.legendLabel;
} else {
opt.label = layer.legendLabel == '' ? ' ' : layer.legendLabel;
More information about the fusion-commits
mailing list