From 78c81ad3744a3e633eaae88ccb41b5d6fcbf7709 Mon Sep 17 00:00:00 2001 From: "timeless%mac.com" Date: Wed, 12 Sep 2007 17:50:03 +0000 Subject: [PATCH] Bug 139471 Rewrite of the personal toolbar drag and drop observer patch=pierrechanial@netscape.net, r=timeless, sr=ben (maybe you should increment the version number to 2.1) git-svn-id: svn://10.0.0.236/trunk@235798 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/suite/browser/src/nsBookmarksService.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/suite/browser/src/nsBookmarksService.cpp b/mozilla/suite/browser/src/nsBookmarksService.cpp index 3bf96eb1229..0dbc4d9b4b7 100644 --- a/mozilla/suite/browser/src/nsBookmarksService.cpp +++ b/mozilla/suite/browser/src/nsBookmarksService.cpp @@ -2678,7 +2678,7 @@ nsBookmarksService::CreateFolderWithDetails(const PRUnichar* aName, // Add to container. if (aIndex >= 0) - rv = container->InsertElementAt(folderResource, !aIndex ? 1 : aIndex + 1, PR_TRUE); + rv = container->InsertElementAt(folderResource, !aIndex ? 1 : aIndex, PR_TRUE); else rv = container->AppendElement(folderResource); @@ -2802,7 +2802,7 @@ nsBookmarksService::CreateBookmarkWithDetails(const PRUnichar* aName, const char // Add to container. if (aIndex >= 0) - rv = container->InsertElementAt(bookmarkResource, !aIndex ? 1 : aIndex + 1, PR_TRUE); + rv = container->InsertElementAt(bookmarkResource, !aIndex ? 1 : aIndex, PR_TRUE); else rv = container->AppendElement(bookmarkResource); @@ -4234,7 +4234,7 @@ nsBookmarksService::insertBookmarkItem(nsIRDFResource *aRelativeNode, if (NS_FAILED(rv)) return rv; // Add to container. - rv = container->InsertElementAt(newResource, !relNodeIdx ? 1 : relNodeIdx + 1, PR_TRUE); + rv = container->InsertElementAt(newResource, !relNodeIdx ? 1 : relNodeIdx, PR_TRUE); return rv; }