diff --git a/content/base/src/nsCommentNode.cpp b/content/base/src/nsCommentNode.cpp index 321b8cd57d0..45a7fcb8724 100644 --- a/content/base/src/nsCommentNode.cpp +++ b/content/base/src/nsCommentNode.cpp @@ -370,10 +370,7 @@ nsCommentNode::ConvertContentToXIF(nsXIFConverter& aConverter) const res = inner->GetText(&textFrag); if (!NS_SUCCEEDED(res)) return res; -#ifdef DEBUG_akkana - if (numFragments == 0) - printf("numFragments is zero! Go figure!\n"); -#endif + if (sel != nsnull && document->IsInSelection(sel,content)) { nsIEnumerator *enumerator; diff --git a/layout/base/src/nsCommentNode.cpp b/layout/base/src/nsCommentNode.cpp index 321b8cd57d0..45a7fcb8724 100644 --- a/layout/base/src/nsCommentNode.cpp +++ b/layout/base/src/nsCommentNode.cpp @@ -370,10 +370,7 @@ nsCommentNode::ConvertContentToXIF(nsXIFConverter& aConverter) const res = inner->GetText(&textFrag); if (!NS_SUCCEEDED(res)) return res; -#ifdef DEBUG_akkana - if (numFragments == 0) - printf("numFragments is zero! Go figure!\n"); -#endif + if (sel != nsnull && document->IsInSelection(sel,content)) { nsIEnumerator *enumerator;