mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
e9ebe98664
commit
541252bb16
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue