git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10298 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2014-09-09 11:02:33 +00:00
parent dd37bc2c12
commit aecb3ac594

View File

@ -1929,6 +1929,7 @@ static void cocoaKeyboardHandler(NSEvent *theEvent)
- (void)resetCursorRects { - (void)resetCursorRects {
Fl_Window *w = [(FLWindow*)[self window] getFl_Window]; Fl_Window *w = [(FLWindow*)[self window] getFl_Window];
Fl_X *i = Fl_X::i(w); 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 // We have to have at least one cursor rect for invalidateCursorRectsForView
// to work, hence the "else" clause. // to work, hence the "else" clause.
if (i->cursor) if (i->cursor)