Skip to content

Commit

Permalink
[r151088] Xcode 4.2 noticed that we weren't creating a mutable attrib…
Browse files Browse the repository at this point in the history
…uted string.
  • Loading branch information
kc-omni committed Jun 22, 2011
1 parent 19b91f7 commit 945863e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -43,10 +43,10 @@ - (BOOL)loadDocumentContents:(NSError **)outError;
OBFinishPorting;
}

_text = [[NSAttributedString alloc] initWithAttributedString:attributedString];
_text = [[NSMutableAttributedString alloc] initWithAttributedString:attributedString];
} else {
// New document
_text = [[NSAttributedString alloc] init];
_text = [[NSMutableAttributedString alloc] init];
}

return YES;
Expand Down

0 comments on commit 945863e

Please sign in to comment.