Commit b70d98e1 authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(buffer_posn_from_coords): Check that target row is

within matrix.
parent 69036b87
......@@ -5801,8 +5801,9 @@ buffer_posn_from_coords (w, x, y, pos, object, dx, dy, width, height)
row = MATRIX_ROW (w->current_matrix, it.vpos);
if (row->enabled_p)
if (it.vpos < w->current_matrix->nrows
&& (row = MATRIX_ROW (w->current_matrix, it.vpos),
if (it.hpos < row->used[TEXT_AREA])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment