summaryrefslogtreecommitdiff
path: root/libview/ev-link-accessible.c
diff options
context:
space:
mode:
authorJoanmarie Diggs <[email protected]>2013-07-20 16:49:21 -0400
committerraveit65 <[email protected]>2017-09-06 21:19:51 +0200
commit3c124fbac4dd43697d33d8d44ea6c48636c49884 (patch)
tree384392af5695bc131fd59549ce3032db43d5490f /libview/ev-link-accessible.c
parent9aaa14a3432c2b5171dd063ee1c0b7d915ff63d2 (diff)
downloadatril-3c124fbac4dd43697d33d8d44ea6c48636c49884.tar.bz2
atril-3c124fbac4dd43697d33d8d44ea6c48636c49884.tar.xz
ev-link-accesible: Return the index/offset after the last character in the link
https://bugzilla.gnome.org/show_bug.cgi?id=704616 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=830dd4e
Diffstat (limited to 'libview/ev-link-accessible.c')
-rw-r--r--libview/ev-link-accessible.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libview/ev-link-accessible.c b/libview/ev-link-accessible.c
index 029fb2df..beac1c0a 100644
--- a/libview/ev-link-accessible.c
+++ b/libview/ev-link-accessible.c
@@ -167,7 +167,7 @@ ev_hyperlink_get_end_index (AtkHyperlink *atk_hyperlink)
c_y = rect->y1 + (rect->y2 - rect->y1) / 2.;
if (c_x >= impl_priv->area.x1 && c_x <= impl_priv->area.x2 &&
c_y >= impl_priv->area.y1 && c_y <= impl_priv->area.y2)
- return i;
+ return i + 1;
}
return -1;