projects
/
platform
/
upstream
/
atk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60fbc74
)
text: atk_text_get_range_extents should use g_return_if_fail
author
Yue Wang
<yue.wang@sun.com>
Tue, 10 Dec 2013 16:58:56 +0000
(17:58 +0100)
committer
Alejandro Piñeiro
<apinheiro@igalia.com>
Tue, 10 Dec 2013 16:59:51 +0000
(17:59 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=572489
atk/atktext.c
patch
|
blob
|
history
diff --git
a/atk/atktext.c
b/atk/atktext.c
index
d142c9a
..
9abb7f4
100755
(executable)
--- a/
atk/atktext.c
+++ b/
atk/atktext.c
@@
-1066,10
+1066,8
@@
atk_text_get_range_extents (AtkText *text,
g_return_if_fail (ATK_IS_TEXT (text));
g_return_if_fail (rect);
+ g_return_if_fail (start_offset >= 0 && start_offset < end_offset);
- if (start_offset < 0 || start_offset >= end_offset)
- return;
-
iface = ATK_TEXT_GET_IFACE (text);
if (iface->get_range_extents)