From ee9da8e31ecdd919af6ed5a7dcfbd2958441c28e Mon Sep 17 00:00:00 2001 From: Randall Luecke Date: Thu, 12 Aug 2010 16:03:24 -0500 Subject: [PATCH] Only call drawRect: is the view is visible. --- AppKit/CPView.j | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AppKit/CPView.j b/AppKit/CPView.j index 8066cafe5..c153dda8a 100644 --- a/AppKit/CPView.j +++ b/AppKit/CPView.j @@ -1846,6 +1846,9 @@ setBoundsOrigin: - (void)displayRectIgnoringOpacity:(CGRect)aRect inContext:(CPGraphicsContext)aGraphicsContext { + if ([self isHidden]) + return; + #if PLATFORM(DOM) [self lockFocus];