From 4d76b39ddc5148f7212a87944509ad95828a9764 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Tue, 6 Aug 2013 21:02:33 +0100 Subject: Copy anchors when copying an Edge Previously, copying-and-pasting a graph would lose source and target anchor information. --- tikzit/src/common/Edge.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tikzit') 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; } -- cgit v1.2.3