diff options
| author | Kim F. Storm | 2005-08-17 15:00:14 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-08-17 15:00:14 +0000 |
| commit | b70d98e13c27b14e12ce4cef9cd9c8758f6fff0a (patch) | |
| tree | f58cdbf1ff9c131bc015f9fcccda18416357369f /src | |
| parent | 69036b87bb3c5aa2beff7440a05dcbae5d7b2d41 (diff) | |
| download | emacs-b70d98e13c27b14e12ce4cef9cd9c8758f6fff0a.tar.gz emacs-b70d98e13c27b14e12ce4cef9cd9c8758f6fff0a.zip | |
(buffer_posn_from_coords): Check that target row is
within matrix.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 3f7d55b2477..15190abfb7e 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -5801,8 +5801,9 @@ buffer_posn_from_coords (w, x, y, pos, object, dx, dy, width, height) | |||
| 5801 | } | 5801 | } |
| 5802 | #endif | 5802 | #endif |
| 5803 | 5803 | ||
| 5804 | row = MATRIX_ROW (w->current_matrix, it.vpos); | 5804 | if (it.vpos < w->current_matrix->nrows |
| 5805 | if (row->enabled_p) | 5805 | && (row = MATRIX_ROW (w->current_matrix, it.vpos), |
| 5806 | row->enabled_p)) | ||
| 5806 | { | 5807 | { |
| 5807 | if (it.hpos < row->used[TEXT_AREA]) | 5808 | if (it.hpos < row->used[TEXT_AREA]) |
| 5808 | { | 5809 | { |