diff --git a/mozilla/content/base/src/nsDocumentViewer.cpp b/mozilla/content/base/src/nsDocumentViewer.cpp index 7fa8e585b0e..101ed1f2f33 100644 --- a/mozilla/content/base/src/nsDocumentViewer.cpp +++ b/mozilla/content/base/src/nsDocumentViewer.cpp @@ -5024,11 +5024,13 @@ DocumentViewerImpl::ShowDocList(PrintObject* aPO, PRBool aShow) { NS_ASSERTION(aPO, "Pointer is null!"); - PRBool donePrinting; - DoPrint(aPO, PR_FALSE, donePrinting); + if (aPO->IsPrintable()) { + PRBool donePrinting; + DoPrint(aPO, PR_FALSE, donePrinting); - if (aPO->mWindow != nsnull) { - aPO->mWindow->Show(aShow); + if (aPO->mWindow != nsnull) { + aPO->mWindow->Show(aShow); + } } PRInt32 cnt = aPO->mKids.Count(); diff --git a/mozilla/layout/base/nsDocumentViewer.cpp b/mozilla/layout/base/nsDocumentViewer.cpp index 7fa8e585b0e..101ed1f2f33 100644 --- a/mozilla/layout/base/nsDocumentViewer.cpp +++ b/mozilla/layout/base/nsDocumentViewer.cpp @@ -5024,11 +5024,13 @@ DocumentViewerImpl::ShowDocList(PrintObject* aPO, PRBool aShow) { NS_ASSERTION(aPO, "Pointer is null!"); - PRBool donePrinting; - DoPrint(aPO, PR_FALSE, donePrinting); + if (aPO->IsPrintable()) { + PRBool donePrinting; + DoPrint(aPO, PR_FALSE, donePrinting); - if (aPO->mWindow != nsnull) { - aPO->mWindow->Show(aShow); + if (aPO->mWindow != nsnull) { + aPO->mWindow->Show(aShow); + } } PRInt32 cnt = aPO->mKids.Count();