* Source/NSSplitView.m (-setAutosaveName:): Treat an empty

autosaveName as nil to fix problem with some nibs.
        Patch by Doug Simons <doug.simons@testplant.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38889 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2015-08-16 19:39:25 +00:00
parent 0f94132171
commit 8944e46035
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2015-08-16 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSSplitView.m (-setAutosaveName:): Treat an empty
autosaveName as nil to fix problem with some nibs.
Patch by Doug Simons <doug.simons@testplant.com>
2015-08-14 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSMatrix.m: Warn about wrong cell array size on

View file

@ -1049,6 +1049,10 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
- (void) setAutosaveName: (NSString *)autosaveName
{
if ([autosaveName length] == 0)
{
autosaveName = nil;
}
ASSIGN(_autosaveName, autosaveName);
}