From b3444d6801e67b7893b1e295dbcab35dad25f946 Mon Sep 17 00:00:00 2001 From: "mjudge%netscape.com" Date: Thu, 10 Feb 2000 07:48:17 +0000 Subject: [PATCH] fix for bug 18528. fixing tabs controls in selection guessing. --- layout/generic/nsTextFrame.cpp | 2 +- layout/html/base/src/nsTextFrame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/generic/nsTextFrame.cpp b/layout/generic/nsTextFrame.cpp index d858dc192f46..8fe40877959b 100644 --- a/layout/generic/nsTextFrame.cpp +++ b/layout/generic/nsTextFrame.cpp @@ -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; } diff --git a/layout/html/base/src/nsTextFrame.cpp b/layout/html/base/src/nsTextFrame.cpp index d858dc192f46..8fe40877959b 100644 --- a/layout/html/base/src/nsTextFrame.cpp +++ b/layout/html/base/src/nsTextFrame.cpp @@ -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; }