Skip to content

Commit

Permalink
Fix GH #219: Singleton images are not painted
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <[email protected]>
  • Loading branch information
tsmock committed Aug 21, 2023
1 parent 373b269 commit 708c5c2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,12 @@ private void paintWithLock(final Graphics2D g, final MapView mv, final Bounds bo
}
}

// Paint single images (see GH #219)
for (INode node : getData().searchNodes(box.toBBox()).stream().filter(node -> !node.isReferredByWays(1))
.sorted(Comparator.comparingInt(INode::getRawTimestamp)).distinct().collect(Collectors.toList())) {
drawImageMarker(originalTransform, selectedImage, g, node, distPer100Pixel, false, null);
}

if (selectedImage != null) {
// Paint the selected sequences
for (IWay<?> way : selectedImage.getReferrers().stream().filter(IWay.class::isInstance)
Expand Down

0 comments on commit 708c5c2

Please sign in to comment.