Init could return a different object, take it in account

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@31617 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2010-11-17 23:45:17 +00:00
parent 95eb255d35
commit 099849f7ff
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2010-11-18 Riccardo Mottola
* Modules/Editors/ProjectCenter/PCEditor.m
Init could return a different object, take it in account.
2010-11-16 German Arias <german@xelalug.org>
* Framework/PCFileManager.m: Allow open .project directories
to add files placed at project directory in AddFiles panel.

View file

@ -284,8 +284,7 @@
[attributes setObject:textBackground forKey:NSBackgroundColorAttributeName];
text = [NSString stringWithContentsOfFile:_path];
[attributedString initWithString:text attributes:attributes];
//
attributedString = [attributedString initWithString:text attributes:attributes];
_storage = [[NSTextStorage alloc] init];
[_storage setAttributedString:attributedString];