diff options
| author | Neil Hodgson <nyamatongwe@gmail.com> | 2015-10-27 17:56:36 +1100 | 
|---|---|---|
| committer | Neil Hodgson <nyamatongwe@gmail.com> | 2015-10-27 17:56:36 +1100 | 
| commit | 51b3766d710e47225f7b1bfb6983ffeaee90b3cf (patch) | |
| tree | a3cdaa76f62f2206cab61589778c55343a0a9bde | |
| parent | aec6cf794aaccff145f0d3793806f6775d7fd2a5 (diff) | |
| download | scintilla-mirror-51b3766d710e47225f7b1bfb6983ffeaee90b3cf.tar.gz | |
Ensure correct propagation of viewWillDraw even after owner deleted.
From Chinh Nguyen.
| -rw-r--r-- | cocoa/ScintillaView.mm | 4 | 
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;  | 
