* 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:
Fred Kiefer 2010-03-23 20:27:23 +00:00
parent 42b91d0695
commit ff5d0e7c13
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2010-03-23 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTextContainer.m (-replaceLayoutManager:): Retain the
text storage while replacing the layout manager. See last patch.
2010-03-23 Fred Kiefer <FredKiefer@gmx.de>
* Source/GSXibLoader.m: Try to be a bit closer to the current NIB

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);
}
}