Bug 346906. GetLinkIndex not working. r=parente

This commit is contained in:
aaronleventhal%moonset.net 2006-08-08 14:50:12 +00:00
Родитель e4ec268e27
Коммит 872b7a7986
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -860,7 +860,7 @@ NS_IMETHODIMP nsHyperTextAccessible::GetLinkIndex(PRInt32 aCharIndex, PRInt32 *a
nsCOMPtr<nsIAccessible> accessible;
while (NextChild(accessible) && characterCount < aCharIndex) {
while (NextChild(accessible) && characterCount <= aCharIndex) {
PRUint32 role = Role(accessible);
if (role == ROLE_TEXT_LEAF) {
nsCOMPtr<nsPIAccessNode> accessNode(do_QueryInterface(accessible));