Fix issue with saving text contents of a cell.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38053 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2014-09-01 05:33:35 +00:00
parent ea086d02cf
commit 0934169b8f
2 changed files with 7 additions and 13 deletions

View file

@ -2410,21 +2410,9 @@ static NSColor *dtxtCol;
{
unsigned long cFlags = 0;
unsigned int cFlags2 = 0;
id contents;
id contents = _contents;
// encode contents
if (_cell.type == NSTextCellType)
{
contents = _contents;
}
else if (_cell.type == NSImageCellType)
{
contents = _cell_image;
}
else
{
contents = [self objectValue];
}
[aCoder encodeObject: contents forKey: @"NSContents"];
// flags