call to GetNodesForOperation() in GetAlignment() missed a parameter indicating it should not modify the tree; b=107372, r=brade, sr=kin

This commit is contained in:
glazman%netscape.com 2001-10-31 15:30:49 +00:00
Родитель 9ddf7a0214
Коммит 2ef77eb271
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -704,7 +704,7 @@ nsHTMLEditRules::GetAlignment(PRBool *aMixed, nsIHTMLEditor::EAlignment *aAlign)
// use these ranges to contruct a list of nodes to act on.
nsCOMPtr<nsISupportsArray> arrayOfNodes;
res = GetNodesForOperation(arrayOfRanges, address_of(arrayOfNodes), kAlign);
res = GetNodesForOperation(arrayOfRanges, address_of(arrayOfNodes), kAlign, PR_TRUE);
if (NS_FAILED(res)) return res;
isupports = dont_AddRef(arrayOfNodes->ElementAt(0));
nodeToExamine = do_QueryInterface(isupports );