[evince] ev-link-accesible: Return the index/offset after the last character in the link



commit 830dd4e12dba503e550ede653dca951cb31fdc27
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Jul 20 16:49:21 2013 -0400

    ev-link-accesible: Return the index/offset after the last character in the link
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704616

 libview/ev-link-accessible.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libview/ev-link-accessible.c b/libview/ev-link-accessible.c
index b52dff7..2a2bb05 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]