From ca3876ddd35040ca1b8dab257baec171fb84498c Mon Sep 17 00:00:00 2001 From: gcasa Date: Thu, 27 Nov 2008 15:07:09 +0000 Subject: [PATCH] * Source/GSNibCompatibility.m: Corrected issue with using generic cells on some controls. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27153 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/GSNibCompatibility.m | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1f24ce02a..f5e5dd48c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-27 10:07-EST Gregory John Casamento + + * Source/GSNibCompatibility.m: Corrected issue with using generic + cells on some controls. + 2008-11-27 Richard Frith-Macdonald * NSSound.m: diff --git a/Source/GSNibCompatibility.m b/Source/GSNibCompatibility.m index 9aad968f6..e52addb07 100644 --- a/Source/GSNibCompatibility.m +++ b/Source/GSNibCompatibility.m @@ -1003,7 +1003,10 @@ static BOOL _isInInterfaceBuilder = NO; [_className isEqualToString: _originalClassName] == NO) { Class newCellClass = [newClass cellClass]; - result = [[newCellClass alloc] initWithCoder: coder]; + if(newCellClass != [NSCell class]) + { + result = [[newCellClass alloc] initWithCoder: coder]; + } } return result;