fixed 4057: Clear() now resets focus and anchor nodes

git-svn-id: svn://10.0.0.236/trunk@24663 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jfrancis%netscape.com 1999-03-22 09:02:30 +00:00
parent a1384a7aec
commit 356ea1dcd5

View File

@ -502,6 +502,8 @@ nsRangeList::RemoveItem(nsISupports *aItem)
nsresult
nsRangeList::Clear()
{
setFocus(nsnull,0);
setAnchor(nsnull,0);
if (!mRangeArray)
return NS_ERROR_FAILURE;
for (PRUint32 i = 0; i < mRangeArray->Count();i++)