mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:21:04 +00:00
* Source/NSTextView.m: Don't add the text storage if it's nil
in initWithCoder: git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28470 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
aa702d8947
commit
5b293ad771
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-08-19 00:57-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/NSTextView.m: Don't add the text storage if it's nil
|
||||
in initWithCoder:
|
||||
|
||||
2009-08-16 15:14-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/NSTextStorage.m: Correct spelling of header file.
|
||||
|
|
|
@ -874,7 +874,11 @@ that makes decoding and encoding compatible with the old code.
|
|||
[aDecoder decodeIntForKey: @"NSTVFlags"];
|
||||
}
|
||||
|
||||
[self insertText: textString];
|
||||
// Don't add the string if it's nil
|
||||
if(textString != nil)
|
||||
{
|
||||
[self insertText: textString];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue