Fixing issue raised in bug 215981.

This commit is contained in:
jst%mozilla.jstenback.com 2003-09-27 06:24:54 +00:00
parent ee8d0c427a
commit 1e7af0b25f

View File

@ -74,7 +74,7 @@ CompressWhitespace(nsIContent* aContent)
PRUint32 numKids = aContent->GetChildCount();
for (PRUint32 kid = 0; kid < numKids; kid++) {
nsCOMPtr<nsITextContent> tc(do_QueryInterface(aContent->GetChildAt(kid)));
if (tc) {
if (tc && tc->IsContentOfType(nsIContent::eTEXT)) {
nsAutoString text;
tc->CopyText(text);
text.CompressWhitespace();