Skip to content

Commit

Permalink
[DRAFT] Wrong tail edge label (#905) (#906)
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
  • Loading branch information
lredor committed Mar 9, 2023
1 parent 54ee381 commit b85ad1c
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2012, 2020 Kiel University and others.
* Copyright (c) 2012, 2022 Kiel University and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand Down Expand Up @@ -51,7 +51,7 @@ public void process(final LGraph layeredGraph, final IElkProgressMonitor monitor
// We iterate over each node's label cells and offset and place them
layeredGraph.getLayers().stream()
.flatMap(layer -> layer.getNodes().stream())
.filter(node -> node.getType() == NodeType.NORMAL && node.hasProperty(InternalProperties.END_LABELS))
.filter(node -> ((node.getType() == NodeType.NORMAL || node.getType() == NodeType.EXTERNAL_PORT) && node.hasProperty(InternalProperties.END_LABELS)))
.forEach(node -> processNode(node));

monitor.done();
Expand Down

0 comments on commit b85ad1c

Please sign in to comment.