[vte] [a11y] Fix assertion failure
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vte] [a11y] Fix assertion failure
- Date: Mon, 28 Sep 2009 18:26:41 +0000 (UTC)
commit ea46cc66b0340dbe42b8b19b2691c824083ad033
Author: Behdad Esfahbod <behdad behdad org>
Date: Mon Sep 28 14:25:42 2009 -0400
[a11y] Fix assertion failure
Reported here:
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/435646
src/vteaccess.c | 2 +-
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]