Bug 217332 When I ask for only pages 1 to 1 to be printed, page 2 prints as well. If the page has IFRAME r+sr=roc, a=benjamin

This commit is contained in:
masayuki%d-toybox.com 2005-07-20 08:45:22 +00:00
parent 15165f0770
commit b3c6b8174a

View File

@ -3009,7 +3009,9 @@ nsPrintEngine::PrintDocContent(nsPrintObject* aPO, nsresult& aStatus)
}
}
if (!aPO->mInvisible) {
// If |aPO->mPrintAsIs| is true, the kids are processed in |PrintPage|
// instead of here.
if (!aPO->mInvisible && !aPO->mPrintAsIs) {
for (PRInt32 i=0;i<aPO->mKids.Count();i++) {
nsPrintObject* po = (nsPrintObject*)aPO->mKids[i];
PRBool printed = PrintDocContent(po, aStatus);