When copying, only make a superficial copy of ivars

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8306 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2000-12-12 17:11:21 +00:00
parent 01360a699c
commit bb4466e3b6

View file

@ -786,17 +786,12 @@
- (id) copyWithZone: (NSZone*)zone - (id) copyWithZone: (NSZone*)zone
{ {
NSButtonCell *c = [super copyWithZone: zone]; NSButtonCell *c = [super copyWithZone: zone];
/* Hmmm. */
c->_altContents = [_altContents copyWithZone: zone]; c->_altContents = [_altContents copyWithZone: zone];
if (_altImage) TEST_RETAIN (_altImage);
c->_altImage = RETAIN(_altImage); TEST_RETAIN (_keyEquivalent);
c->_keyEquivalent = [_keyEquivalent copyWithZone: zone]; TEST_RETAIN (_keyEquivalentFont);
if (_keyEquivalentFont)
c->_keyEquivalentFont = RETAIN(_keyEquivalentFont);
//c->_keyEquivalentModifierMask = _keyEquivalentModifierMask;
//c->_buttoncell_is_transparent = _buttoncell_is_transparent;
//c->_highlightsByMask = _highlightsByMask;
//c->_showAltStateMask = _showAltStateMask;
return c; return c;
} }