diff options
author | Alex Merry <dev@randomguy3.me.uk> | 2013-03-22 19:29:23 +0000 |
---|---|---|
committer | Alex Merry <dev@randomguy3.me.uk> | 2013-03-22 19:29:23 +0000 |
commit | 7a639879e0446bd355fa52e2e347735f57d7abf9 (patch) | |
tree | 148e78c063fa0f15e5c9bd3654581d48173cad8e /tikzit/src/common/Edge.m | |
parent | 515f5473f64b16128fed09eaecce734ffcb50ade (diff) |
When the @property says we copy it, actually copy it
Fixes a crash when manually editing anchors on Linux.
Diffstat (limited to 'tikzit/src/common/Edge.m')
-rw-r--r-- | tikzit/src/common/Edge.m | 4 |
1 files 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 = @""; } |