summaryrefslogtreecommitdiff
path: root/atk/atkhypertext.c
diff options
context:
space:
mode:
authorPadraig O'Briain <padraig.obriain@sun.com>2003-02-12 17:44:49 +0000
committerPadraig O'Briain <padraigo@src.gnome.org>2003-02-12 17:44:49 +0000
commit53e2b80dea284acfb659c22fcecf59b13e47ce74 (patch)
tree4c8bedb12c5745650500c897000bf3a0413ef765 /atk/atkhypertext.c
parentf29c38b636b6a1373940dd55e46e4e075399c365 (diff)
downloadat-spi2-core-53e2b80dea284acfb659c22fcecf59b13e47ce74.tar.gz
Correct typo in blurb
2003-02-12 Padraig O'Briain <padraig.obriain@sun.com> * atk/atkhyperlink.c (atk_hyperlink_class_init): Correct typo in blurb * atk/atkhypertext.c (atk_hypertext_get_link): Add check on link_index value (atk_hypertext_get_link_index): Add check on char_index value
Diffstat (limited to 'atk/atkhypertext.c')
-rwxr-xr-xatk/atkhypertext.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/atk/atkhypertext.c b/atk/atkhypertext.c
index cfca58e9..6da5030d 100755
--- a/atk/atkhypertext.c
+++ b/atk/atkhypertext.c
@@ -1,5 +1,5 @@
/* ATK - The Accessibility Toolkit for GTK+
- * Copyright 2001 Sun Microsystems Inc.
+ * Copyright 2001, 2002, 2003 Sun Microsystems Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -89,6 +89,9 @@ atk_hypertext_get_link (AtkHypertext *hypertext,
g_return_val_if_fail (ATK_IS_HYPERTEXT (hypertext), NULL);
+ if (link_index < 0)
+ return NULL;
+
iface = ATK_HYPERTEXT_GET_IFACE (hypertext);
if (iface->get_link)
@@ -139,6 +142,9 @@ atk_hypertext_get_link_index (AtkHypertext *hypertext,
g_return_val_if_fail (ATK_IS_HYPERTEXT (hypertext), -1);
+ if (char_index < 0)
+ return -1;
+
iface = ATK_HYPERTEXT_GET_IFACE (hypertext);
if (iface->get_link_index)