diff options
author | Alex Merry <dev@randomguy3.me.uk> | 2013-08-06 21:02:33 +0100 |
---|---|---|
committer | Alex Merry <dev@randomguy3.me.uk> | 2013-08-06 21:02:33 +0100 |
commit | 4d76b39ddc5148f7212a87944509ad95828a9764 (patch) | |
tree | 5f1c69cc3ea498bd2c14646220de3fcd3a313720 /tikzit/src/common/Edge.m | |
parent | 5ccc1c9d048f9ea026f914837636311bd49dc769 (diff) |
Copy anchors when copying an Edge
Previously, copying-and-pasting a graph would lose source and target
anchor information.
Diffstat (limited to 'tikzit/src/common/Edge.m')
-rw-r--r-- | tikzit/src/common/Edge.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tikzit/src/common/Edge.m b/tikzit/src/common/Edge.m index 945503f..7b538b5 100644 --- a/tikzit/src/common/Edge.m +++ b/tikzit/src/common/Edge.m @@ -656,6 +656,8 @@ Edge *cp = [[Edge allocWithZone:zone] init]; [cp setSource:[self source]]; [cp setTarget:[self target]]; + [cp setSourceAnchor:[self sourceAnchor]]; + [cp setTargetAnchor:[self targetAnchor]]; [cp setPropertiesFromEdge:self]; return cp; } |