mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 21:40:36 +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
c927eb226f
commit
bc251cbb51
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…
Add table
Add a link
Reference in a new issue