diff options
| author | Manolo Gouy <Manolo> | 2014-09-09 11:02:33 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2014-09-09 11:02:33 +0000 |
| commit | aecb3ac5940f2130135777d088210ef5a1a9c9b5 (patch) | |
| tree | d7c81fcb254a37ec0e08acbba51b827b80e90696 | |
| parent | dd37bc2c127501c8a8068620414371af4639d4cd (diff) | |
Fix for STR #3128
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10298 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_cocoa.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 77f7c1085..06f801e64 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1929,6 +1929,7 @@ static void cocoaKeyboardHandler(NSEvent *theEvent) - (void)resetCursorRects { Fl_Window *w = [(FLWindow*)[self window] getFl_Window]; Fl_X *i = Fl_X::i(w); + if (!i) return; // fix for STR #3128 // We have to have at least one cursor rect for invalidateCursorRectsForView // to work, hence the "else" clause. if (i->cursor) |
