diff --git a/Frameworks/OakTextView/src/OakTextView.mm b/Frameworks/OakTextView/src/OakTextView.mm index 08ad6959..512c0cc2 100644 --- a/Frameworks/OakTextView/src/OakTextView.mm +++ b/Frameworks/OakTextView/src/OakTextView.mm @@ -581,8 +581,11 @@ static std::string shell_quote (std::vector paths) - (void)drawRect:(NSRect)aRect { - [[NSColor clearColor] set]; - NSRectFill(aRect); // Only necessary when theme uses a transparent background. + if(theme && theme->is_transparent()) + { + [[NSColor clearColor] set]; + NSRectFill(aRect); + } CGContextRef context = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort]; if(!antiAlias)