From b4c2d22cac1f9737bbdf41bd8a53914bb390257d Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Tue, 27 Oct 2015 17:56:36 +1100 Subject: Ensure correct propagation of viewWillDraw even after owner deleted. From Chinh Nguyen. --- cocoa/ScintillaView.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cocoa') 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; -- cgit v1.2.3