Call setClientView: before calling setMarkers: to fix a problem when a textView's text is set or changed when the textView is not the first responder, such as at windowControllerDidLoadNib: time.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34633 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Doug Simons 2012-01-25 23:28:51 +00:00
parent cbf7bc52a9
commit 3e7c9bceef
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2012-01-25 Doug Simons <doug.simons@testplant.com>
* Source/NSTextView.m (-updateRuler): Call setClientView: before
calling setMarkers: to fix a problem when a textView's text is
set or changed when the textView is not the first responder,
such as at windowControllerDidLoadNib: time.
2012-01-25 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSImage.m (+imageNamed:): Don't try to look up path

View file

@ -4597,6 +4597,7 @@ shouldRemoveMarker: (NSRulerMarker *)marker
makers = [_layoutManager rulerMarkersForTextView: self
paragraphStyle: paraStyle
ruler: rv];
[rv setClientView:self];
[rv setMarkers: makers];
}
}