Fixed an off by one problem in the ContentInserted() code

This commit is contained in:
troy@netscape.com
1998-09-23 04:25:49 +00:00
parent 713835d407
commit dccce1e3ac
3 changed files with 3 additions and 3 deletions

View File

@@ -1438,7 +1438,7 @@ FindPreviousSibling(nsIPresShell* aPresShell,
// Note: not all content objects are associated with a frame so
// keep looking until we find a previous frame
for (PRInt32 index = aIndexInContainer - 1; index > 0; index--) {
for (PRInt32 index = aIndexInContainer - 1; index >= 0; index--) {
nsIContent* precedingContent;
aContainer->ChildAt(index, precedingContent);
prevSibling = aPresShell->FindFrameWithContent(precedingContent);