summaryrefslogtreecommitdiff
path: root/libview
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2026-08-05 14:42:35 -0400
committerVictor Kareh <[email protected]>2026-08-05 14:42:35 -0400
commitf8cd470113bc84c93b20e29bd460ebd8338aa5b1 (patch)
tree5bc1074ee0a57895bdffc00358baf27e102beabf /libview
parent55825e1428773100781ef0643432590238f3432b (diff)
downloadatril-atspi-selection-fixes.tar.bz2
atril-atspi-selection-fixes.tar.xz
a11y: allow selecting through the very last characteratspi-selection-fixes
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
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-page-accessible.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libview/ev-page-accessible.c b/libview/ev-page-accessible.c
index a76be8d8..a9020ccc 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);