aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2015-10-27 17:56:36 +1100
committerNeil Hodgson <nyamatongwe@gmail.com>2015-10-27 17:56:36 +1100
commit51b3766d710e47225f7b1bfb6983ffeaee90b3cf (patch)
treea3cdaa76f62f2206cab61589778c55343a0a9bde
parentaec6cf794aaccff145f0d3793806f6775d7fd2a5 (diff)
downloadscintilla-mirror-51b3766d710e47225f7b1bfb6983ffeaee90b3cf.tar.gz
Ensure correct propagation of viewWillDraw even after owner deleted.
From Chinh Nguyen.
-rw-r--r--cocoa/ScintillaView.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm
index 3a73355c4..5bfdce138 100644
--- a/cocoa/ScintillaView.mm
+++ b/cocoa/ScintillaView.mm
@@ -241,8 +241,10 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor)
*/
- (void) viewWillDraw
{
- if (!mOwner)
+ if (!mOwner) {
+ [super viewWillDraw];
return;
+ }
const NSRect *rects;
NSInteger nRects = 0;