mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 06:28:54 +00:00
Always inform the layout manager that the textview is changed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12492 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f20aa934fc
commit
b7d009fa07
1 changed files with 1 additions and 6 deletions
|
@ -149,13 +149,11 @@
|
|||
- (void) setTextView: (NSTextView*)aTextView
|
||||
{
|
||||
NSNotificationCenter *nc;
|
||||
BOOL informsLayoutManager = NO;
|
||||
|
||||
nc = [NSNotificationCenter defaultCenter];
|
||||
|
||||
if (_textView)
|
||||
{
|
||||
informsLayoutManager = YES;
|
||||
[_textView setTextContainer: nil];
|
||||
[nc removeObserver: self name: NSViewFrameDidChangeNotification
|
||||
object: _textView];
|
||||
|
@ -179,10 +177,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (informsLayoutManager == YES)
|
||||
{
|
||||
[_layoutManager textContainerChangedTextView: self];
|
||||
}
|
||||
[_layoutManager textContainerChangedTextView: self];
|
||||
}
|
||||
|
||||
- (NSTextView*) textView
|
||||
|
|
Loading…
Reference in a new issue