summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@cs.ox.ac.uk>2012-06-14 17:14:14 +0100
committerAlex Merry <alex.merry@cs.ox.ac.uk>2012-06-14 17:14:14 +0100
commita07317887d8aa2d9920a756a48fc8b6c4bbd97c7 (patch)
tree1bd4c66d460e6dfc012fb1434aa5c8c3ba603080
parentf244e7c06c3de117bb766977982480772c22c8cc (diff)
Make sure inEdges and outEdges are up-to-date
-rw-r--r--tikzit/src/common/Graph.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/tikzit/src/common/Graph.m b/tikzit/src/common/Graph.m
index 27c2ebb..48d6563 100644
--- a/tikzit/src/common/Graph.m
+++ b/tikzit/src/common/Graph.m
@@ -127,10 +127,12 @@
}
- (NSSet*)inEdgesForNode:(Node*)nd {
+ [self sync];
return [[[inEdges objectForKey:nd] retain] autorelease];
}
- (NSSet*)outEdgesForNode:(Node*)nd {
+ [self sync];
return [[[outEdges objectForKey:nd] retain] autorelease];
}