Skip to content

Ghidra is a software reverse engineering (SRE) framework

fixed mistake in GraphDisplayOptionsBuilder that prevented users from setting the max node count

ghidravored98a4e736f1e
diff --git a/Ghidra/Framework/Graph/src/main/java/ghidra/service/graph/GraphDisplayOptionsBuilder.java b/Ghidra/Framework/Graph/src/main/java/ghidra/service/graph/GraphDisplayOptionsBuilder.java
index 3e4965bff9..4c8e464fc7 100644
--- a/Ghidra/Framework/Graph/src/main/java/ghidra/service/graph/GraphDisplayOptionsBuilder.java
+++ b/Ghidra/Framework/Graph/src/main/java/ghidra/service/graph/GraphDisplayOptionsBuilder.java
@@ -177,7 +177,7 @@ public class GraphDisplayOptionsBuilder {
* @return this GraphDisplayOptionsBuilder
*/
public GraphDisplayOptionsBuilder maxNodeCount(int maxNodeCount) {
- displayOptions.getMaxNodeCount();
+ displayOptions.setMaxNodeCount(maxNodeCount);
return this;
}