From: danigm Date: Mon, 21 Mar 2011 07:19:58 +0000 (+0100) Subject: a11y: fixed offset index error X-Git-Tag: EVINCE_2_91_92~3 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=evince.git;a=commitdiff_plain;h=af0c0f056f8e2f64244df3b7cf1132347f4a9716 a11y: fixed offset index error --- diff --git a/libview/ev-view-accessible.c b/libview/ev-view-accessible.c index 5834af29..bb5b817b 100644 --- a/libview/ev-view-accessible.c +++ b/libview/ev-view-accessible.c @@ -417,7 +417,7 @@ ev_view_accessible_get_character_extents (AtkText *text, if (!areas) return; - if (offset > n_areas) + if (offset >= n_areas) return; rect = areas + offset;