aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextAndLinkCell.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTextAndLinkCell.m')
-rw-r--r--Source/SPTextAndLinkCell.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/SPTextAndLinkCell.m b/Source/SPTextAndLinkCell.m
index 8eac562d..29d93a62 100644
--- a/Source/SPTextAndLinkCell.m
+++ b/Source/SPTextAndLinkCell.m
@@ -78,8 +78,11 @@ static inline NSRect SPTextLinkRectFromCellRect(NSRect inRect)
* Returns a new instance which is a copy of the receiver
*/
- (id) copyWithZone:(NSZone *)zone {
- SPTextAndLinkCell *copy = [super copyWithZone:zone];
+ SPTextAndLinkCell *copy = (SPTextAndLinkCell *)[super copyWithZone:zone];
+ copy->linkButton = nil;
if (linkButton) copy->linkButton = [linkButton copyWithZone:zone];
+ copy->linkTarget = linkTarget;
+ copy->linkAction = linkAction;
return copy;
}