Skip to content

Commit 526b70c

Browse files
committed
Fixes edge colour legend: would show “compound” even when edges have different colours. And no longer checks EnrichmentMap.isDistinctExpressionSets() when filtering edges.
1 parent c0ab8e6 commit 526b70c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/view/control/ControlPanelMediator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ private Set<CyNode> getFilteredInNodes(Set<AbstractDataSet> selectedDataSets) {
791791

792792
private Set<CyEdge> getFilteredInEdges(Set<AbstractDataSet> selectedDataSets) {
793793
EMCreationParameters params = map.getParams();
794-
boolean distinct = params.getCreateDistinctEdges() && map.isDistinctExpressionSets();
794+
boolean distinct = params.getCreateDistinctEdges();
795795

796796
// Compound edges are not associated with a specific data set
797797
Set<Long> dataSetEdges = distinct ? EnrichmentMap.getEdgesUnion(selectedDataSets) : null;

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/view/legend/LegendPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ private void updateEdgeColorPanel(EnrichmentMap map) {
351351
if (map != null) {
352352
Dimension iconSize = new Dimension(LEGEND_ICON_SIZE, LEGEND_ICON_SIZE / 2);
353353

354-
if (map.getParams().getCreateDistinctEdges() && map.isDistinctExpressionSets()) {
354+
if (map.getParams().getCreateDistinctEdges()) {
355355
VisualMappingFunction<?, Paint> mf =
356356
style.getVisualMappingFunction(BasicVisualLexicon.EDGE_STROKE_UNSELECTED_PAINT);
357357

0 commit comments

Comments
 (0)