aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text/gal-a11y-e-text.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/text/gal-a11y-e-text.c')
-rw-r--r--widgets/text/gal-a11y-e-text.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/text/gal-a11y-e-text.c b/widgets/text/gal-a11y-e-text.c
index dcc96d1d69..aeb6e6bf3b 100644
--- a/widgets/text/gal-a11y-e-text.c
+++ b/widgets/text/gal-a11y-e-text.c
@@ -677,7 +677,8 @@ et_get_selection (AtkText *text,
if (full_text == NULL)
return NULL;
len = g_utf8_strlen (full_text, -1);
- etext = E_TEXT (atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (text)));
+ etext = E_TEXT (atk_gobject_accessible_get_object (
+ ATK_GOBJECT_ACCESSIBLE (text)));
start = MIN (etext->selection_start, etext->selection_end);
end = MAX (etext->selection_start, etext->selection_end);
start = MIN (MAX (0, start), len);