119504 r=varga sr=waterson. fix insertion sort so the outliner inserts new element in the correct position

git-svn-id: svn://10.0.0.236/trunk@112078 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
naving%netscape.com 2002-01-14 19:49:05 +00:00
parent 2a71c4da3b
commit aaa5718f74
2 changed files with 2 additions and 2 deletions

View File

@ -1118,7 +1118,7 @@ nsXULOutlinerBuilder::ReplaceMatch(nsIRDFResource* aMember,
if (cmp < 0)
left = ++index;
else if (cmp > 0)
right = index - 1;
right = --index;
else
break;
}

View File

@ -1118,7 +1118,7 @@ nsXULOutlinerBuilder::ReplaceMatch(nsIRDFResource* aMember,
if (cmp < 0)
left = ++index;
else if (cmp > 0)
right = index - 1;
right = --index;
else
break;
}