mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
* 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:
parent
42b91d0695
commit
ff5d0e7c13
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue