added a special case to the output text rules for an empty document

(one that contains the bogus node)
This commit is contained in:
buster%netscape.com 1999-08-24 13:48:08 +00:00
parent a488cd15db
commit 796446129f
2 changed files with 10 additions and 0 deletions

View File

@ -835,6 +835,11 @@ nsTextEditRules::WillOutputText(nsIDOMSelection *aSelection,
*aOutString = mPasswordText;
*aCancel = PR_TRUE;
}
else if (mBogusNode)
{ // this means there's no content, so output null string
*aOutString = "";
*aCancel = PR_TRUE;
}
return NS_OK;
}

View File

@ -835,6 +835,11 @@ nsTextEditRules::WillOutputText(nsIDOMSelection *aSelection,
*aOutString = mPasswordText;
*aCancel = PR_TRUE;
}
else if (mBogusNode)
{ // this means there's no content, so output null string
*aOutString = "";
*aCancel = PR_TRUE;
}
return NS_OK;
}