mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 15:11:04 +00:00
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:
parent
e8c87f46a2
commit
dc34b4ddbe
2 changed files with 7 additions and 13 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue