Don't call these methods when the PO is not printable.
Bug 127639 r=dcone sr=attinas a=asa git-svn-id: svn://10.0.0.236/trunk@115370 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user