atk r1223 - in trunk: . atk
- From: liyuan svn gnome org
- To: svn-commits-list gnome org
- Subject: atk r1223 - in trunk: . atk
- Date: Thu, 31 Jan 2008 10:25:58 +0000 (GMT)
Author: liyuan
Date: Thu Jan 31 10:25:58 2008
New Revision: 1223
URL: http://svn.gnome.org/viewvc/atk?rev=1223&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/atk/atktext.c
Modified: trunk/atk/atktext.c
==============================================================================
--- trunk/atk/atktext.c (original)
+++ trunk/atk/atktext.c Thu Jan 31 10:25:58 2008
@@ -206,9 +206,6 @@
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 @@
else
real_end_offset = &local_end_offset;
- if (offset < 0)
- return NULL;
-
iface = ATK_TEXT_GET_IFACE (text);
if (iface->get_text_at_offset)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]