diff options
| author | Victor Kareh <[email protected]> | 2026-08-05 14:42:35 -0400 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-08-11 18:35:35 +0000 |
| commit | d6803f25d858bafc0cf4f6cec6dbfd7cc5980381 (patch) | |
| tree | de9b8462a627784566f5ea15676bea7cf2e249a3 | |
| parent | 7169481780351a04729d134a486e2eae6d5eda81 (diff) | |
| download | atril-d6803f25d858bafc0cf4f6cec6dbfd7cc5980381.tar.bz2 atril-d6803f25d858bafc0cf4f6cec6dbfd7cc5980381.tar.xz | |
a11y: allow selecting through the very last character
Selecting the entire document text failed silently and nothing got
selected. The code was rejecting a valid request to select all the way
to the end of the text, treating it as out of range instead.
Now that request is accepted, so selecting through the last character
works as expected.
Fixes #718
| -rw-r--r-- | libview/ev-page-accessible.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libview/ev-page-accessible.c b/libview/ev-page-accessible.c index 364af1ae..90894ac2 100644 --- a/libview/ev-page-accessible.c +++ b/libview/ev-page-accessible.c @@ -1013,7 +1013,7 @@ ev_page_accessible_get_selection_points (EvPageAccessible *self, GdkRectangle start_rect, end_rect; ev_page_cache_get_text_layout (view->page_cache, self->priv->page, &areas, &n_areas); - if (start_pos < 0 || end_pos >= n_areas) + if (start_pos < 0 || end_pos > n_areas) return FALSE; _ev_view_transform_doc_rect_to_view_rect (view, self->priv->page, areas + start_pos, &start_rect); |
