Fix assertions that I caused with my previous checkin. sr=hyatt

This commit is contained in:
dbaron%fas.harvard.edu 2001-11-14 08:17:19 +00:00
parent 0183edd75f
commit 5482728d2b

View File

@ -300,6 +300,12 @@ nsresult
nsXBLContentSink::FlushText(PRBool aCreateTextNode,
PRBool* aDidFlush)
{
if (mTextLength == 0) {
if (aDidFlush)
*aDidFlush = PR_FALSE;
return NS_OK;
}
const nsASingleFragmentString& text = Substring(mText, mText+mTextLength);
if (mState == eXBL_InHandlers) {
// Get the text and add it to the event handler.