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:
Nicola Pero 2002-02-11 16:36:55 +00:00
parent f20aa934fc
commit b7d009fa07

View file

@ -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