зеркало из https://github.com/mozilla/pjs.git
Don't call these methods when the PO is not printable.
Bug 127639 r=dcone sr=attinas a=asa
This commit is contained in:
Родитель
5778230d9a
Коммит
3b4c2dcfc7
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче