diff options
author | Chinh Nguyen <unknown> | 2023-09-27 15:51:34 +1000 |
---|---|---|
committer | Chinh Nguyen <unknown> | 2023-09-27 15:51:34 +1000 |
commit | fd0a5dfdc646bfd5175976ce2df8ebffc7a94b96 (patch) | |
tree | 1f3b44f0bf2887841337e808c29b12478a104071 /cocoa/ScintillaView.mm | |
parent | e1fe0a2bb0f5fc078f719198276757e4319e0e43 (diff) | |
download | scintilla-mirror-fd0a5dfdc646bfd5175976ce2df8ebffc7a94b96.tar.gz |
Bug [#2402]. Fix invisible text on macOS 14 Sonoma when building with Xcode 15.
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r-- | cocoa/ScintillaView.mm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index cee96def5..4b5bf393a 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -202,6 +202,9 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor) { } - (void) drawRect: (NSRect) rect { + if (!NSContainsRect(self.bounds, rect)) { + rect = self.bounds; + } [super drawRect:rect]; } |