Fix for STR #3128
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10298 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
dd37bc2c12
commit
aecb3ac594
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user