* 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:
Gregory John Casamento 2009-08-19 04:58:31 +00:00
parent aa702d8947
commit 5b293ad771
2 changed files with 10 additions and 1 deletions

View file

@ -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.

View 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
{