In [copyWithZone:] use mutable copy of prargraph style.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15754 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2003-01-28 22:39:56 +00:00
parent e9ebe98664
commit 541252bb16

View file

@ -102,7 +102,7 @@ readNSString (StringContext *ctxt)
{
RTFAttribute *new = (RTFAttribute *)NSCopyObject (self, 0, zone);
new->paragraph = [paragraph copyWithZone: zone];
new->paragraph = [paragraph mutableCopyWithZone: zone];
RETAIN(new->fontName);
RETAIN(new->fgColour);
RETAIN(new->bgColour);
@ -475,7 +475,6 @@ static BOOL classInheritsFromNSMutableAttributedString (Class c)
[localException reason]);
//[localException raise];
NS_ENDHANDLER
RELEASE(rtfString);
RELEASE(pool);
// document attributes