diff options
author | Li Yuan <li.yuan@sun.com> | 2008-01-31 10:25:58 +0000 |
---|---|---|
committer | Li Yuan <liyuan@src.gnome.org> | 2008-01-31 10:25:58 +0000 |
commit | 9c843fcf99e1ce7d4a6c41be658c0817890f4b87 (patch) | |
tree | 53229f13e60bf3ad64509d2f7f8d193fb2b7bea9 | |
parent | c9b5c3d1c34b62572a1946b2621ef11894ce6600 (diff) | |
download | atk-9c843fcf99e1ce7d4a6c41be658c0817890f4b87.tar.gz |
Bug #508846. Extend allowed indexes of ATK_TEXT_GET_TEXT_AT_OFFSET and
2008-01-31 Li Yuan <li.yuan@sun.com>
* atk/atktext.c: (atk_text_get_character_at_offset),
(atk_text_get_text_at_offset):
Bug #508846. Extend allowed indexes of
ATK_TEXT_GET_TEXT_AT_OFFSET and
ATK_TEXT_GET_CHARACTER_AT_OFFSET to allow values -1 and -2.
svn path=/trunk/; revision=1223
-rw-r--r-- | ChangeLog | 8 | ||||
-rwxr-xr-x | atk/atktext.c | 6 |
2 files changed, 8 insertions, 6 deletions
@@ -1,3 +1,11 @@ +2008-01-31 Li Yuan <li.yuan@sun.com> + + * atk/atktext.c: (atk_text_get_character_at_offset), + (atk_text_get_text_at_offset): + Bug #508846. Extend allowed indexes of + ATK_TEXT_GET_TEXT_AT_OFFSET and + ATK_TEXT_GET_CHARACTER_AT_OFFSET to allow values -1 and -2. + 2008-01-14 Li Yuan <li.yuan@sun.com> * NEWS: diff --git a/atk/atktext.c b/atk/atktext.c index 304a5eb..227b311 100755 --- a/atk/atktext.c +++ b/atk/atktext.c @@ -206,9 +206,6 @@ atk_text_get_character_at_offset (AtkText *text, g_return_val_if_fail (ATK_IS_TEXT (text), (gunichar) 0); - if (offset < 0) - return (gunichar) 0; - iface = ATK_TEXT_GET_IFACE (text); if (iface->get_character_at_offset) @@ -377,9 +374,6 @@ atk_text_get_text_at_offset (AtkText *text, else real_end_offset = &local_end_offset; - if (offset < 0) - return NULL; - iface = ATK_TEXT_GET_IFACE (text); if (iface->get_text_at_offset) |