Do not copy deeply ivars when copying

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8307 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2000-12-12 17:12:16 +00:00
parent 5fee1bbe00
commit cadf24988f

View file

@ -107,8 +107,8 @@ static NSColor *txtCol;
{ {
NSTextFieldCell *c = [super copyWithZone: zone]; NSTextFieldCell *c = [super copyWithZone: zone];
c->_background_color = [_background_color copyWithZone: zone]; RETAIN (_background_color);
c->_text_color = [_text_color copyWithZone: zone]; RETAIN (_text_color);
return c; return c;
} }