diff options
Diffstat (limited to 'Source/SPTextView.m')
-rw-r--r-- | Source/SPTextView.m | 7 |
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]]) { |