Another fix for bug#70385
* src/xdisp.c (note_fringe_highlight): Check value of x_y_to_hpos_vpos.
This commit is contained in:
parent
1606e14c6f
commit
42b3024ca8
1 changed files with 2 additions and 1 deletions
|
@ -35770,7 +35770,8 @@ note_fringe_highlight (struct frame *f, Lisp_Object window, int x, int y,
|
|||
/* Translate windows coordinates into a vertical window position. */
|
||||
int hpos, vpos, area;
|
||||
struct window *w = XWINDOW (window);
|
||||
x_y_to_hpos_vpos (w, x, y, &hpos, &vpos, 0, 0, &area);
|
||||
if (x_y_to_hpos_vpos (w, x, y, &hpos, &vpos, 0, 0, &area) == NULL)
|
||||
return; /* not all glyph rows between 0 and Y are enabled */
|
||||
|
||||
/* Don't access the TEXT_AREA of a row that does not display text,
|
||||
when the window is outdated, or when vpos overflows the current
|
||||
|
|
Loading…
Add table
Reference in a new issue