aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2005-08-17 15:00:14 +0000
committerKim F. Storm2005-08-17 15:00:14 +0000
commitb70d98e13c27b14e12ce4cef9cd9c8758f6fff0a (patch)
treef58cdbf1ff9c131bc015f9fcccda18416357369f /src
parent69036b87bb3c5aa2beff7440a05dcbae5d7b2d41 (diff)
downloademacs-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.c5
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 {