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:
gcasa 2014-09-01 05:33:35 +00:00
parent e8c87f46a2
commit dc34b4ddbe
2 changed files with 7 additions and 13 deletions

View file

@ -1,3 +1,9 @@
2014-09-01 01:30-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSCell.m: Fix issue with saving text contents of the cell.
The code was improperly replacing the contents with the image
depending on cell type.
2014-08-20 22:49-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Headers/AppKit/NSButtonCell.h

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