only do the coordinate check if tmp is not NULL.
2007-07-17 Kristian Rietveld <kris@imendio.com> * gtk/gtktooltip.c (find_widget_under_pointer): only do the coordinate check if tmp is not NULL. svn path=/trunk/; revision=18486
This commit is contained in:
committed by
Kristian Rietveld
parent
20580e491e
commit
2a8be448e3
@ -1,3 +1,8 @@
|
|||||||
|
2007-07-17 Kristian Rietveld <kris@imendio.com>
|
||||||
|
|
||||||
|
* gtk/gtktooltip.c (find_widget_under_pointer): only do the
|
||||||
|
coordinate check if tmp is not NULL.
|
||||||
|
|
||||||
2007-07-16 Kristian Rietveld <kris@imendio.com>
|
2007-07-16 Kristian Rietveld <kris@imendio.com>
|
||||||
|
|
||||||
* gtk/gtktooltip.c (find_topmost_widget_coords_from_event): check
|
* gtk/gtktooltip.c (find_topmost_widget_coords_from_event): check
|
||||||
|
|||||||
@ -594,7 +594,8 @@ find_topmost_widget_coords_from_event (GdkEvent *event,
|
|||||||
tmp = find_widget_under_pointer (event->any.window, &tx, &ty);
|
tmp = find_widget_under_pointer (event->any.window, &tx, &ty);
|
||||||
|
|
||||||
/* Make sure the pointer can actually be on the widget returned */
|
/* Make sure the pointer can actually be on the widget returned */
|
||||||
if (tx < 0 || tx >= tmp->allocation.width ||
|
if (!tmp ||
|
||||||
|
tx < 0 || tx >= tmp->allocation.width ||
|
||||||
ty < 0 || ty >= tmp->allocation.height)
|
ty < 0 || ty >= tmp->allocation.height)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user