From 19b582e3c9fa0223956ece5e8f5fb90a43c053f7 Mon Sep 17 00:00:00 2001 From: Tom Nelson Date: Mon, 14 Dec 2020 11:40:08 -0500 Subject: [PATCH] GP-514 - fixes 'hidden vertices are not also hidden in satellite view' --- .../java/ghidra/graph/visualization/DefaultGraphDisplay.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultGraphDisplay.java b/Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultGraphDisplay.java index 1b8c4134b1..684196ca93 100644 --- a/Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultGraphDisplay.java +++ b/Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultGraphDisplay.java @@ -618,6 +618,9 @@ public class DefaultGraphDisplay implements GraphDisplay { satellite.getRenderContext().setVertexFillPaintFunction(Colors::getColor); satellite.scaleToLayout(); satellite.getRenderContext().setVertexLabelFunction(n -> null); + // always get the current predicate from the main view and test with it, + satellite.getRenderContext() + .setVertexIncludePredicate(v -> viewer.getRenderContext().getVertexIncludePredicate().test(v)); satellite.getComponent().setBorder(BorderFactory.createEtchedBorder()); parentViewer.getComponent().addComponentListener(new ComponentAdapter() { @Override @@ -820,7 +823,7 @@ public class DefaultGraphDisplay implements GraphDisplay { viewer.getRenderContext() .setVertexIncludePredicate( v -> v.getAttributeMap().values().stream().noneMatch(selected::contains)); - viewer.repaint(); + }); edgeFilters = AttributeFilters.builder()