summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-09-28 14:25:42 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-09-28 14:25:42 -0400
commitea46cc66b0340dbe42b8b19b2691c824083ad033 (patch)
treeb96ccd84cfebcb72a88b65afbcde95cda3a2abc2 /src
parent470030991fc3107e04934b1d3aa54d4428be7e2f (diff)
[a11y] Fix assertion failure
Reported here: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/435646
Diffstat (limited to 'src')
-rw-r--r--src/vteaccess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vteaccess.c b/src/vteaccess.c
index 8e5f592..fba3b43 100644
--- a/src/vteaccess.c
+++ b/src/vteaccess.c
@@ -1019,7 +1019,7 @@ vte_terminal_accessible_get_text_somewhere(AtkText *text,
offset, priv->snapshot_attributes->len);
g_assert(priv->snapshot_text != NULL);
g_assert(priv->snapshot_characters != NULL);
- if (offset == (int) priv->snapshot_characters->len) {
+ if (offset >= (int) priv->snapshot_characters->len) {
return g_strdup("");
}
g_assert(offset < priv->snapshot_characters->len);