fix for bug 18528. fixing tabs controls in selection guessing.

This commit is contained in:
mjudge%netscape.com 2000-02-10 07:48:17 +00:00
parent 6a1ffaeb57
commit b3444d6801
2 changed files with 2 additions and 2 deletions

View File

@ -2036,7 +2036,7 @@ nsTextFrame::GetPosition(nsIPresContext* aCX,
//reusing wordBufMem
PRInt32 i;
for (i = 0;i <= mContentLength; i ++){
if (ip[i] == aContentOffset){ //reverse mapping
if (ip[i] >= aContentOffset){ //reverse mapping
aContentOffset = i + mContentOffset;
break;
}

View File

@ -2036,7 +2036,7 @@ nsTextFrame::GetPosition(nsIPresContext* aCX,
//reusing wordBufMem
PRInt32 i;
for (i = 0;i <= mContentLength; i ++){
if (ip[i] == aContentOffset){ //reverse mapping
if (ip[i] >= aContentOffset){ //reverse mapping
aContentOffset = i + mContentOffset;
break;
}