From 7aa6e5b289a17888676ed519e9815b14fbdb9947 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Wed, 19 Dec 2012 02:08:10 +0000 Subject: - Tweak SPTextView background drawing, moving custom drawing into a different function, to allow "Highlight current query" to function again --- Source/SPTextView.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Source') diff --git a/Source/SPTextView.m b/Source/SPTextView.m index a9831b55..dcb9dad7 100644 --- a/Source/SPTextView.m +++ b/Source/SPTextView.m @@ -2958,8 +2958,8 @@ static inline NSPoint SPPointOnLine(NSPoint a, NSPoint b, CGFloat t) { return NS [paragraphStyle release]; } -- (void)drawRect:(NSRect)rect { - +- (void)drawViewBackgroundInRect:(NSRect)rect { + [super drawViewBackgroundInRect:rect]; // Draw background only for screen display but not while printing, and only if view // background drawing is enabled. @@ -3010,8 +3010,6 @@ static inline NSPoint SPPointOnLine(NSPoint a, NSPoint b, CGFloat t) { return NS } } - - [super drawRect:rect]; } - (NSBezierPath*)roundedBezierPathAroundRange:(NSRange)aRange -- cgit v1.2.3