diff options
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index f745de887..c9dcefc1d 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1252,9 +1252,9 @@ extern "C" { - (id)windowWillReturnFieldEditor:(NSWindow *)sender toObject:(id)client { if (fl_mac_os_version < 100500) { - NSRect rect={{0,0},{20,20}}; static FLTextView *view = nil; if (!view) { + NSRect rect={{0,0},{20,20}}; view = [[FLTextView alloc] initWithFrame:rect]; } return view; |
