diff options
author | rowanbeentje <rowan@beent.je> | 2012-12-19 02:08:10 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-12-19 02:08:10 +0000 |
commit | 7aa6e5b289a17888676ed519e9815b14fbdb9947 (patch) | |
tree | b03a7b2dd8da69ab9843bf64f14def33d1502d48 /Source | |
parent | e98a0d8ab5912e9ecbc862171f5ab589f920c102 (diff) | |
download | sequelpro-7aa6e5b289a17888676ed519e9815b14fbdb9947.tar.gz sequelpro-7aa6e5b289a17888676ed519e9815b14fbdb9947.tar.bz2 sequelpro-7aa6e5b289a17888676ed519e9815b14fbdb9947.zip |
- Tweak SPTextView background drawing, moving custom drawing into a different function, to allow "Highlight current query" to function again
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPTextView.m | 6 |
1 files changed, 2 insertions, 4 deletions
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 |