* Source/NSTextContainer.m (-replaceLayoutManager:): Retain the

text storage while replacing the layout manager. See last patch.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30025 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2010-03-23 20:27:23 +00:00
parent 8561ca5047
commit a6880c0f99
2 changed files with 7 additions and 0 deletions

View file

@ -166,6 +166,7 @@ framework intact.
GSLayoutManager *oldLayoutManager = _layoutManager;
RETAIN(oldLayoutManager);
RETAIN(textStorage);
[textStorage removeLayoutManager: _layoutManager];
[textStorage addLayoutManager: aLayoutManager];
@ -186,6 +187,7 @@ framework intact.
[[container textView] setTextContainer: container];
RELEASE(container);
}
RELEASE(textStorage);
RELEASE(oldLayoutManager);
}
}