Bug 237956 Gnopernicus can't report the content of a StaticText while the cursor is at the tail.

r =  kyle.yuan@sun.com
sr = henry.jia@sun.com
This commit is contained in:
louie.zhao%sun.com 2004-03-23 03:08:30 +00:00
parent b8cfc3cf0c
commit d95a003c13

View File

@ -152,7 +152,7 @@ nsIDOMNode* nsAccessibleHyperText::FindTextNodeByOffset(PRInt32 aOffset, PRInt32
nsAccessibleText accText(domNode);
PRInt32 charCount;
if (NS_SUCCEEDED(accText.GetCharacterCount(&charCount))) {
if (aOffset >= 0 && aOffset < charCount) {
if (aOffset >= 0 && aOffset <= charCount) {
return domNode;
}
aOffset -= charCount;