diff options
-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 = @""; } |