From e440b4e39b4de3b7ca0e4e56c9bae9c43d2de2e3 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Sat, 11 Oct 2003 19:32:36 +0000 Subject: make sure the declation is at the beginning of the block. 2003-10-11 Larry Ewing * gal/a11y/e-text/ChangeLog: make sure the declation is at the beginning of the block. svn path=/trunk/; revision=22868 --- a11y/e-text/gal-a11y-e-text.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/a11y/e-text/gal-a11y-e-text.c b/a11y/e-text/gal-a11y-e-text.c index 06fe40d41b..be7835e17d 100644 --- a/a11y/e-text/gal-a11y-e-text.c +++ b/a11y/e-text/gal-a11y-e-text.c @@ -801,10 +801,11 @@ et_set_caret_offset (AtkText *text, if (offset < -1) return FALSE; else { + ETextEventProcessorCommand command; + if (offset == -1) offset = et_get_character_count (text); - ETextEventProcessorCommand command; command.action = E_TEP_MOVE; command.position = E_TEP_VALUE; command.value = offset; -- cgit v1.2.3