From a764720ab79a17b4dbd398c49f5cfbbeca38a641 Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Thu, 17 Jan 2002 04:43:17 +0000 Subject: [PATCH] rjc was right. Third time's the charm. git-svn-id: svn://10.0.0.236/trunk@112376 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/xul/templates/src/nsOutlinerRows.cpp | 2 +- mozilla/content/xul/templates/src/nsTreeRows.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/content/xul/templates/src/nsOutlinerRows.cpp b/mozilla/content/xul/templates/src/nsOutlinerRows.cpp index 7f18609990f..271a765b245 100644 --- a/mozilla/content/xul/templates/src/nsOutlinerRows.cpp +++ b/mozilla/content/xul/templates/src/nsOutlinerRows.cpp @@ -357,7 +357,7 @@ void nsOutlinerRows::iterator::Push(Subtree *aParent, PRInt32 aChildIndex) { if (mTop < kMaxDepth - 1) { - for (PRInt32 i = mTop - 1; i >= 0; --i) + for (PRInt32 i = mTop; i >= 0; --i) mLink[i + 1] = mLink[i]; mLink[0].mParent = aParent; diff --git a/mozilla/content/xul/templates/src/nsTreeRows.cpp b/mozilla/content/xul/templates/src/nsTreeRows.cpp index 7f18609990f..271a765b245 100644 --- a/mozilla/content/xul/templates/src/nsTreeRows.cpp +++ b/mozilla/content/xul/templates/src/nsTreeRows.cpp @@ -357,7 +357,7 @@ void nsOutlinerRows::iterator::Push(Subtree *aParent, PRInt32 aChildIndex) { if (mTop < kMaxDepth - 1) { - for (PRInt32 i = mTop - 1; i >= 0; --i) + for (PRInt32 i = mTop; i >= 0; --i) mLink[i + 1] = mLink[i]; mLink[0].mParent = aParent;