summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-10-22 14:07:51 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-10-22 14:07:51 -0400
commit3e523aa2db487828a332703461e84d6a2cf4ef04 (patch)
tree686233daa04588cbb7021b1ba7333631bd87f8ca /src
parentb933212a00bf4f7437d5741b1eb9132d66b263fd (diff)
Bug 598814 - text.getText(0, -1) triggers assertion in vteaccess.c
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 fba3b43..b53611e 100644
--- a/src/vteaccess.c
+++ b/src/vteaccess.c
@@ -935,7 +935,7 @@ vte_terminal_accessible_get_text(AtkText *text,
gchar *ret;
/* Swap around if start is greater than end */
- if (start_offset > end_offset) {
+ if (start_offset > end_offset && end_offset != -1) {
gint tmp;
tmp = start_offset;