summaryrefslogtreecommitdiff
path: root/flowgraphnode.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2019-04-26 16:38:14 -0400
committerRusty Wagner <rusty@vector35.com>2019-04-26 16:38:14 -0400
commit453eb5bdc70513464c7137f910cba815289c97a0 (patch)
tree2bdf1ebdaf00748fcf631d58486afe97d6da3197 /flowgraphnode.cpp
parent0911788d1183d061eabe1d9084d4eb866c032938 (diff)
Don't let a node that hasn't been added to the graph be added as an edge target
Diffstat (limited to 'flowgraphnode.cpp')
-rw-r--r--flowgraphnode.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/flowgraphnode.cpp b/flowgraphnode.cpp
index 37128cd8..4a1729ff 100644
--- a/flowgraphnode.cpp
+++ b/flowgraphnode.cpp
@@ -208,3 +208,9 @@ void FlowGraphNode::SetHighlight(const BNHighlightColor& color)
{
BNSetFlowGraphNodeHighlight(m_object, color);
}
+
+
+bool FlowGraphNode::IsValidForGraph(FlowGraph* graph) const
+{
+ return BNIsNodeValidForFlowGraph(graph->GetObject(), m_object);
+}