[fusion-commits] r3062 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Mon Apr 10 07:26:36 PDT 2023
Author: jng
Date: 2023-04-10 07:26:35 -0700 (Mon, 10 Apr 2023)
New Revision: 3062
Modified:
trunk/widgets/Legend.js
Log:
Make Legend gracefully handle hidden/invisible groups. Patch by Patrik Johansson
Fixes #668
Modified: trunk/widgets/Legend.js
===================================================================
--- trunk/widgets/Legend.js 2023-04-10 14:19:13 UTC (rev 3061)
+++ trunk/widgets/Legend.js 2023-04-10 14:26:35 UTC (rev 3062)
@@ -559,6 +559,9 @@
},
hideEmptyGroup: function(group) {
+ if (!group.legend) {
+ return;
+ }
if (group.hasVisibleLayers) {
if (group.legend.treeItem) {
group.legend.treeItem.domObj.style.display = 'block';
More information about the fusion-commits
mailing list