]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.trend/src/org/simantics/trend/impl/TrendNode.java
Fixed TrendNode.setTrendSpec to properly update item axes
[simantics/platform.git] / bundles / org.simantics.trend / src / org / simantics / trend / impl / TrendNode.java
index 575af21f5aa77265d0ee80298ceb1e8c3eb791dd..ddbd4934e0763dd6dd82468a0031563b2ea56f5d 100644 (file)
@@ -243,7 +243,8 @@ public class TrendNode extends G2DParentNode implements TrendLayout {
                TObjectIntMap<String> map = new TObjectIntHashMap<>(items.size(), 0.5f, -1);
                for (int i = 0; i < items.size(); ++i) {
                        TrendItem it = items.get(i);
-                       map.put(it.groupItemId, i);
+                       if (!it.hidden)
+                               map.put(it.groupItemId, i);
                }
                return map;
        }