diff options
author | Alex Merry <alex.merry@cs.ox.ac.uk> | 2012-06-14 17:14:14 +0100 |
---|---|---|
committer | Alex Merry <alex.merry@cs.ox.ac.uk> | 2012-06-14 17:14:14 +0100 |
commit | a07317887d8aa2d9920a756a48fc8b6c4bbd97c7 (patch) | |
tree | 1bd4c66d460e6dfc012fb1434aa5c8c3ba603080 | |
parent | f244e7c06c3de117bb766977982480772c22c8cc (diff) |
Make sure inEdges and outEdges are up-to-date
-rw-r--r-- | tikzit/src/common/Graph.m | 2 |
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]; } |