Skip to content
Snippets Groups Projects
Commit 59427df8 authored by George Nachman's avatar George Nachman
Browse files

Really fix bug where we throw an exception in -PTYScroller drawRect:

parent 3304d548
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -103,7 +103,9 @@
 
- (void)drawRect:(NSRect)dirtyRect {
if (IsLionOrLater() &&
self.hasDarkBackground) {
self.hasDarkBackground &&
dirtyRect.size.width > 0 &&
dirtyRect.size.height > 0) {
NSImage *superDrawn = [[NSImage alloc] initWithSize:NSMakeSize(dirtyRect.origin.x + dirtyRect.size.width,
dirtyRect.origin.y + dirtyRect.size.height)];
[superDrawn lockFocus];
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment