From 7a639879e0446bd355fa52e2e347735f57d7abf9 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Fri, 22 Mar 2013 19:29:23 +0000 Subject: When the @property says we copy it, actually copy it Fixes a crash when manually editing anchors on Linux. --- tikzit/src/common/Edge.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tikzit/src/common/Edge.m b/tikzit/src/common/Edge.m index aa8a3ac..f9cb9b5 100644 --- a/tikzit/src/common/Edge.m +++ b/tikzit/src/common/Edge.m @@ -397,7 +397,7 @@ - (void)setSourceAnchor:(NSString *)_sourceAnchor{ if(_sourceAnchor != nil){ - sourceAnchor = _sourceAnchor; + sourceAnchor = [_sourceAnchor copy]; }else{ sourceAnchor = @""; } @@ -405,7 +405,7 @@ - (void)setTargetAnchor:(NSString *)_targetAnchor{ if(_targetAnchor != nil){ - targetAnchor = _targetAnchor; + targetAnchor = [_targetAnchor copy]; }else{ targetAnchor = @""; } -- cgit v1.2.3