aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextView.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-07-29 21:40:15 +0000
committerrowanbeentje <rowan@beent.je>2012-07-29 21:40:15 +0000
commitc06c5fe8261183d5f154edb1866608e8013ebbaa (patch)
treec51a612caaa4b9cec804026477913672adf231b8 /Source/SPTextView.m
parent14fd84b917d197352ebb84351df27df7237ee92e (diff)
downloadsequelpro-c06c5fe8261183d5f154edb1866608e8013ebbaa.tar.gz
sequelpro-c06c5fe8261183d5f154edb1866608e8013ebbaa.tar.bz2
sequelpro-c06c5fe8261183d5f154edb1866608e8013ebbaa.zip
- Remove the last BWToolKit view items from the main nib (DBView) by redesigning the advanced Content Filter window
- Tweak SPTextView to support translucent views, or views which are set not to draw their background - Fix Lion compatibility for advanced content filter default operator (Issue #1255)
Diffstat (limited to 'Source/SPTextView.m')
-rw-r--r--Source/SPTextView.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/SPTextView.m b/Source/SPTextView.m
index e9dc1413..e3d3d70c 100644
--- a/Source/SPTextView.m
+++ b/Source/SPTextView.m
@@ -2980,12 +2980,13 @@ NSInteger _alphabeticSort(id string1, id string2, void *reverse)
- (void)drawRect:(NSRect)rect {
- // Draw background only for screen display but not while printing
- if([NSGraphicsContext currentContextDrawingToScreen]) {
+ // Draw background only for screen display but not while printing, and only if view
+ // background drawing is enabled.
+ if([NSGraphicsContext currentContextDrawingToScreen] && [self drawsBackground]) {
// Draw textview's background since due to the snippet highlighting we're responsible for it.
[[self queryEditorBackgroundColor] setFill];
- NSRectFill(rect);
+ NSRectFillUsingOperation(rect, NSCompositeSourceOver);
if([[self delegate] isKindOfClass:[SPCustomQuery class]]) {