mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 10:40:12 +00:00
Don't call these methods when the PO is not printable.
Bug 127639 r=dcone sr=attinas a=asa
This commit is contained in:
parent
3edb8225ec
commit
f53bdb3606
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user