summaryrefslogtreecommitdiff
path: root/tikzit/src/common/ColorRGB.m
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/common/ColorRGB.m')
-rw-r--r--tikzit/src/common/ColorRGB.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/tikzit/src/common/ColorRGB.m b/tikzit/src/common/ColorRGB.m
index b6fc2e3..673a88d 100644
--- a/tikzit/src/common/ColorRGB.m
+++ b/tikzit/src/common/ColorRGB.m
@@ -263,8 +263,8 @@ static NSMapTable *colorHash = nil;
return dr*dr + dg*dg + db*db;
}
-- (id)copy {
- ColorRGB *col = [[ColorRGB alloc] initWithRed:red green:green blue:blue];
+- (id)copyWithZone:(NSZone*)zone {
+ ColorRGB *col = [[ColorRGB allocWithZone:zone] initWithRed:red green:green blue:blue];
return col;
}